summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-07-26 15:38:13 +0000
committerMatt Wilson <msw@redhat.com>2002-07-26 15:38:13 +0000
commit455b6eb021a8590cc10c9e021693d0fe9a73efed (patch)
tree0933611f3287c3d1b4e13b65fac784b21a594f2a /gui.py
parent4fe2f88eee79878d72a163209300b986e2e2db06 (diff)
downloadanaconda-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-xgui.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index f599b4ec8..ce753b191 100755
--- a/gui.py
+++ b/gui.py
@@ -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)