diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-24 06:52:06 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-24 06:52:06 +0000 |
commit | 3bfe7219a7eb273386e3f6e06bed79a9ad73334e (patch) | |
tree | 0cffb6e695fb0b61f70c07a974923cefae93e17c /gui.py | |
parent | 5368957a8284398f758554074bce2e9597255e74 (diff) | |
download | anaconda-3bfe7219a7eb273386e3f6e06bed79a9ad73334e.tar.gz anaconda-3bfe7219a7eb273386e3f6e06bed79a9ad73334e.tar.xz anaconda-3bfe7219a7eb273386e3f6e06bed79a9ad73334e.zip |
splash
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 39 |
1 files changed, 38 insertions, 1 deletions
@@ -8,7 +8,39 @@ def _(string): from gtk import * from gtk import _root_window +import GdkImlib from GDK import * + +im = None +splashwindow = None +try: + im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/first.png") +except: + try: + im = GdkImlib.Image ("pixmaps/first.png") + except: + print "Unable to load", file +if im: + root = _root_window () + cursor = cursor_new (LEFT_PTR) + root.set_cursor (cursor) + threads_enter () + im.render () + splashwindow = GtkWindow (WINDOW_POPUP) + splashwindow.set_position (WIN_POS_CENTER) + box = GtkEventBox () + pix = im.make_pixmap () + style = box.get_style ().copy () + style.bg[STATE_NORMAL] = style.white + box.set_style (style) + box.add (pix) + splashwindow.add (box) + splashwindow.show_all () + while events_pending (): + mainiteration (FALSE) + draw_rectangle(root, style.white_gc, TRUE, 0, 0, root.width, root.height) + threads_leave () + from gnome.ui import * from gnome.xmhtml import * from iw.language import * @@ -28,7 +60,6 @@ from iw.lilo import * from iw.installpath import * import sys -import GdkImlib import isys import sys @@ -190,6 +221,12 @@ class InstallInterface: return CongratulationWindow def run (self, todo, test = 0): + global splashwindow + if splashwindow: + threads_enter () + splashwindow.destroy () + print "here" + threads_leave () gtkThread = GtkMainThread () gtkThread.start () |