summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorbfox <bfox>2001-07-06 16:41:39 +0000
committerbfox <bfox>2001-07-06 16:41:39 +0000
commit5e5df5ae018d96d4b3dc9a208c799e17f708b738 (patch)
tree60254033ae59ea2329de2f77f7cefd0a04d81c02 /iw
parent7d80d724deb544e9fcf4e40b54e9b9dfc89e1494 (diff)
downloadanaconda-5e5df5ae018d96d4b3dc9a208c799e17f708b738.tar.gz
anaconda-5e5df5ae018d96d4b3dc9a208c799e17f708b738.tar.xz
anaconda-5e5df5ae018d96d4b3dc9a208c799e17f708b738.zip
updates to make more product strings specified via conf file
Diffstat (limited to 'iw')
-rw-r--r--iw/welcome_gui.py23
1 files changed, 21 insertions, 2 deletions
diff --git a/iw/welcome_gui.py b/iw/welcome_gui.py
index f5c0c727f..2f7dba25b 100644
--- a/iw/welcome_gui.py
+++ b/iw/welcome_gui.py
@@ -2,6 +2,7 @@ from gtk import *
from gnome.ui import *
from iw_gui import *
from translate import _, N_
+import GdkImlib
class WelcomeWindow (InstallWindow):
@@ -12,11 +13,29 @@ class WelcomeWindow (InstallWindow):
InstallWindow.__init__ (self, ics)
ics.setGrabNext (1)
+ def load_image(self, file):
+ print file
+ try:
+ print ("/usr/share/anaconda/" + file)
+ im = GdkImlib.Image("/usr/share/anaconda/" + file)
+ except:
+ try:
+ im = GdkImlib.Image("" + file)
+ except:
+ print "Unable to load", file
+
+ return im
+
# WelcomeWindow tag="wel"
- def getScreen (self):
+ def getScreen (self, configFileData):
+ print configFileData
+
frame = GtkFrame ()
frame.set_shadow_type (SHADOW_IN)
- im = self.ics.readPixmap ("splash.png")
+
+ image = configFileData["WelcomeScreen"]
+
+ im = self.load_image(image)
if im:
im.render ()