diff options
author | Matt Wilson <msw@redhat.com> | 2002-07-26 15:38:13 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-07-26 15:38:13 +0000 |
commit | 455b6eb021a8590cc10c9e021693d0fe9a73efed (patch) | |
tree | 0933611f3287c3d1b4e13b65fac784b21a594f2a /gui.py | |
parent | 4fe2f88eee79878d72a163209300b986e2e2db06 (diff) | |
download | anaconda-455b6eb021a8590cc10c9e021693d0fe9a73efed.tar.gz anaconda-455b6eb021a8590cc10c9e021693d0fe9a73efed.tar.xz anaconda-455b6eb021a8590cc10c9e021693d0fe9a73efed.zip |
change to a busy icon when twiddling components
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -857,6 +857,8 @@ class InstallControlWindow: nextButton.grab_focus () def __init__ (self, ii, dispatch, locale): + self.busyIcon = 0 + self.prevButtonStock = None self.nextButtonStock = None self.releaseButton = None @@ -1069,6 +1071,22 @@ class InstallControlWindow: splashScreenPop() + def busyIconPush(self): + self.busyIcon += 1 + if self.busyIcon > 0: + root = gtk.gdk.get_default_root_window() + cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) + root.set_cursor(cursor) + processEvents() + + def busyIconPop(self): + self.busyIcon -= 1 + if self.busyIcon <= 0: + root = gtk.gdk.get_default_root_window() + cursor = gtk.gdk.Cursor(gtk.gdk.LEFT_PTR) + root.set_cursor(cursor) + processEvents() + def run (self, runres, configFileData): self.configFileData = configFileData self.setup_window(runres) |