diff options
author | bfox <bfox> | 2000-11-27 17:15:14 +0000 |
---|---|---|
committer | bfox <bfox> | 2000-11-27 17:15:14 +0000 |
commit | 7ec7e5a0d95148abfbd3feaeae29bbbd5dfaa79a (patch) | |
tree | 15eaa646583289d854cd42f242a441517a6f8240 /gui.py | |
parent | a435b2aef3f134144c3c0c0ea94dd929f971370e (diff) | |
download | anaconda-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-x | gui.py | 29 |
1 files changed, 20 insertions, 9 deletions
@@ -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) |