summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorpnfisher <pnfisher>1999-09-12 21:28:33 +0000
committerpnfisher <pnfisher>1999-09-12 21:28:33 +0000
commit9d6ca8fe629235780943bab57ad43ce4f6e44325 (patch)
tree8b1c66d65129043412d816c39736050bef6fc254 /gui.py
parent4872e25219f68fd9d8c3d556ecde62118d40220a (diff)
downloadanaconda-9d6ca8fe629235780943bab57ad43ce4f6e44325.tar.gz
anaconda-9d6ca8fe629235780943bab57ad43ce4f6e44325.tar.xz
anaconda-9d6ca8fe629235780943bab57ad43ce4f6e44325.zip
Add semi-sane help state.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py25
1 files changed, 15 insertions, 10 deletions
diff --git a/gui.py b/gui.py
index 4ed8ce8f9..0c21e8eb5 100755
--- a/gui.py
+++ b/gui.py
@@ -182,7 +182,10 @@ class InstallControlWindow (Thread):
sys.exit (0)
self.setScreen (self.currentScreen, self.nextClicked)
- def helpClicked (self, widget, *args):
+ def helpClicked (self, widget, simulated = 0):
+ if not simulated:
+ self.helpState = (widget == self.showHelpButton)
+
self.hbox.remove (widget)
if widget == self.hideHelpButton:
self.bin.remove (self.table)
@@ -213,6 +216,7 @@ class InstallControlWindow (Thread):
self.todo.instClass.skipStep(self.stateTagByWindow[screen])):
direction ()
return
+
new_screen = screen.getScreen ()
if not new_screen:
direction ()
@@ -222,7 +226,13 @@ class InstallControlWindow (Thread):
if not self.initialScreenShown:
self.initialScreenShown = 1
screen.getICS ().setPrevEnabled (FALSE)
-
+
+ if self.helpState != self.displayHelp:
+ if self.displayHelp:
+ self.helpClicked (self.hideHelpButton, 1)
+ else:
+ self.helpClicked (self.showHelpButton, 1)
+
self.update (screen.getICS ())
children = self.installFrame.children ()
@@ -269,21 +279,15 @@ class InstallControlWindow (Thread):
self.buttonBox.remove (children[1])
self.buttonBox.pack_end (buttons["next"])
-# old flickery button changing code
-# if not (buttons["prev"] in children and buttons["next"] in children):
-# self.buttonBox.foreach (lambda x, b=self.buttonBox: b.remove (x))
-# self.buttonBox.pack_start (buttons["prev"])
-# self.buttonBox.pack_start (buttons["next"])
-
buttons["prev"].set_sensitive (ics.getPrevEnabled ())
buttons["next"].set_sensitive (ics.getNextEnabled ())
if ics.getHelpEnabled () == FALSE:
if self.displayHelp:
- self.helpClicked (self.hideHelpButton)
+ self.helpClicked (self.hideHelpButton, 1)
elif ics.getHelpEnabled () == TRUE:
if not self.displayHelp:
- self.helpClicked (self.showHelpButton)
+ self.helpClicked (self.showHelpButton, 1)
if self.displayHelp:
self.html.source (ics.getHTML ())
@@ -334,6 +338,7 @@ class InstallControlWindow (Thread):
self.html.set_allow_body_colors(TRUE)
self.html.source ("<HTML><BODY>HTML Help Window</BODY></HTML>")
self.displayHelp = TRUE
+ self.helpState = TRUE
self.helpFrame = GtkFrame (_("Online Help"))
box = GtkVBox (FALSE, 0)