summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorpnfisher <pnfisher>1999-08-09 18:31:20 +0000
committerpnfisher <pnfisher>1999-08-09 18:31:20 +0000
commitd9e6318dae2650dd500949b96cc7d96a8698194b (patch)
tree0dcb7cd3a8b142ad5b19301c1bb5576d59ac9bf0 /gui.py
parenta14ffd86b426ad1cd9b1514face96339a8a9395b (diff)
downloadanaconda-d9e6318dae2650dd500949b96cc7d96a8698194b.tar.gz
anaconda-d9e6318dae2650dd500949b96cc7d96a8698194b.tar.xz
anaconda-d9e6318dae2650dd500949b96cc7d96a8698194b.zip
When changing IWs, if getScreen returns None, continue advancing in
the last direction given.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/gui.py b/gui.py
index 5a73c52f6..466a79254 100755
--- a/gui.py
+++ b/gui.py
@@ -125,7 +125,7 @@ class InstallInterface:
class InstallControlWindow:
- def prevClicked (self, widget, *args):
+ def prevClicked (self, *args):
prev = self.currentScreen.getPrev ()
if prev:
for x in self.windowList:
@@ -135,9 +135,9 @@ class InstallControlWindow:
else:
self.stateListIndex = self.stateListIndex - 1
self.currentScreen = self.stateList[self.stateListIndex]
- self.setScreen (self.currentScreen)
+ self.setScreen (self.currentScreen, self.prevClicked)
- def nextClicked (self, widget, *args):
+ def nextClicked (self, *args):
next = self.currentScreen.getNext ()
if next:
for x in self.windowList:
@@ -147,7 +147,7 @@ class InstallControlWindow:
else:
self.stateListIndex = self.stateListIndex + 1
self.currentScreen = self.stateList[self.stateListIndex]
- self.setScreen (self.currentScreen)
+ self.setScreen (self.currentScreen, self.nextClicked)
def helpClicked (self, widget, *args):
self.hbox.remove (widget)
@@ -173,18 +173,19 @@ class InstallControlWindow:
self.hbox.reorder_child (self.hideHelpButton, 0)
self.displayHelp = TRUE
- def setScreen (self, screen):
-# if screen == len (self.stateList):
-# self.mutex.release ()
-# return
+ def setScreen (self, screen, direction):
+ # if getScreen returns None, we continue advancing in direction given
+ new_screen = screen.getScreen ()
+ if not new_screen:
+ direction ()
self.update (screen.getICS ())
child = self.installFrame.children ()[0]
self.installFrame.remove (child)
child.destroy ()
-
- self.installFrame.add (screen.getScreen ())
+
+ self.installFrame.add (new_screen)
self.installFrame.show_all ()
def update (self, ics):