summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-01 20:18:40 +0000
committerMatt Wilson <msw@redhat.com>2000-05-01 20:18:40 +0000
commit707fb423af405ab4159fabe7317171e2700d8b00 (patch)
treec48af0bd9db0288bc6b5ea18816bb7f2e294a307 /gui.py
parent949fe83c3bf19bf6982550d1c7d14884cac46cd1 (diff)
downloadanaconda-707fb423af405ab4159fabe7317171e2700d8b00.tar.gz
anaconda-707fb423af405ab4159fabe7317171e2700d8b00.tar.xz
anaconda-707fb423af405ab4159fabe7317171e2700d8b00.zip
insensitive help buttons on certain screens
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/gui.py b/gui.py
index 420cd29a1..424368ac8 100755
--- a/gui.py
+++ b/gui.py
@@ -463,6 +463,8 @@ class InstallControlWindow (Thread):
buttons["prev"].set_sensitive (ics.getPrevEnabled ())
buttons["next"].set_sensitive (ics.getNextEnabled ())
+ self.hideHelpButton.set_sensitive (ics.getHelpButtonEnabled ())
+ self.showHelpButton.set_sensitive (ics.getHelpButtonEnabled ())
if ics.getHelpEnabled () == FALSE:
if self.displayHelp:
@@ -622,6 +624,7 @@ class InstallControlState:
self.todo = todo
self.prevEnabled = prevEnabled
self.nextEnabled = nextEnabled
+ self.helpButtonEnabled = TRUE
self.title = title
self.html = html
self.htmlFile = None
@@ -648,9 +651,7 @@ class InstallControlState:
self.cw.update (self)
def getPrevEnabled (self):
- if (self.prevEnabled != 0):
- return TRUE
- return FALSE
+ return self.prevEnabled
def setNextEnabled (self, value):
if value == self.nextEnabled: return
@@ -658,9 +659,15 @@ class InstallControlState:
self.cw.update (self)
def getNextEnabled (self):
- if (self.nextEnabled != 0):
- return TRUE
- return FALSE
+ return self.nextEnabled
+
+ def setHelpButtonEnabled (self, value):
+ if value == self.helpButtonEnabled: return
+ self.helpButtonEnabled = value
+ self.cw.update (self)
+
+ def getHelpButtonEnabled (self):
+ return self.helpButtonEnabled
def readPixmap (self, file):
try: