diff options
author | bfox <bfox> | 2000-11-28 21:17:42 +0000 |
---|---|---|
committer | bfox <bfox> | 2000-11-28 21:17:42 +0000 |
commit | 7e6c50ca8f14885b877044c6af35842c181c7198 (patch) | |
tree | 2aac052e0a86066529498302f7fdbb437d4d86a1 /gui.py | |
parent | 1124e887d8515b55970742ee9b35023fd9285534 (diff) | |
download | anaconda-7e6c50ca8f14885b877044c6af35842c181c7198.tar.gz anaconda-7e6c50ca8f14885b877044c6af35842c181c7198.tar.xz anaconda-7e6c50ca8f14885b877044c6af35842c181c7198.zip |
Added code to use first-lowres.png if installer is run at less than 800x600. Other wise, use first.png, which is an 800x600 png
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -5,10 +5,15 @@ from gtk import _root_window from _gtk import gtk_set_locale import GdkImlib from GDK import * +import time im = None splashwindow = None + +#print "Inside gui.py" +#print x.res +#time.sleep (5) width = screen_width() #--If the xserver is running at 800x600 res or higher, use the 800x600 splash screen. @@ -17,11 +22,12 @@ if width >= 800: im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/first.png") except: try: - im = GdkImlib.Image ("pixmaps/first-lowres.png") + im = GdkImlib.Image ("pixmaps/first.png") except: print "Unable to load", file #--Otherwise, use the old 640x480 one else: + print "In lowres mode..." try: im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/first-lowres.png") except: |