summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2000-11-27 17:15:14 +0000
committerbfox <bfox>2000-11-27 17:15:14 +0000
commit7ec7e5a0d95148abfbd3feaeae29bbbd5dfaa79a (patch)
tree15eaa646583289d854cd42f242a441517a6f8240 /gui.py
parenta435b2aef3f134144c3c0c0ea94dd929f971370e (diff)
downloadanaconda-7ec7e5a0d95148abfbd3feaeae29bbbd5dfaa79a.tar.gz
anaconda-7ec7e5a0d95148abfbd3feaeae29bbbd5dfaa79a.tar.xz
anaconda-7ec7e5a0d95148abfbd3feaeae29bbbd5dfaa79a.zip
Allow different splash screens to appear if in high or low resolution.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py29
1 files changed, 20 insertions, 9 deletions
diff --git a/gui.py b/gui.py
index 168dc2622..c34de17c5 100755
--- a/gui.py
+++ b/gui.py
@@ -8,19 +8,27 @@ from GDK import *
im = None
splashwindow = None
-#print "Hello"
-#print self.todo.test
+print "Hello"
-#print self.todo.lowres
+width = screen_width()
-#if self.todo.intf.runres == '640x480':
-try:
- im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/first-lowres.png")
-except:
+if width >= 800:
try:
- im = GdkImlib.Image ("pixmaps/first-lowres.png")
+ im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/first.png")
except:
- print "Unable to load", file
+ try:
+ im = GdkImlib.Image ("pixmaps/first-lowres.png")
+ except:
+ print "Unable to load", file
+
+else:
+ try:
+ im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/first-lowres.png")
+ except:
+ try:
+ im = GdkImlib.Image ("pixmaps/first-lowres.png")
+ except:
+ print "Unable to load", file
#else:
# try:
@@ -54,6 +62,9 @@ if im:
threads_leave ()
root = _root_window ()
+
+
+
cursor = cursor_new (LEFT_PTR)
root.set_cursor (cursor)