summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-24 21:49:04 +0000
committerMatt Wilson <msw@redhat.com>2001-07-24 21:49:04 +0000
commit492e53485c6f2510ded63d06c1b1cb67b96e1835 (patch)
treed725268255dfc0d0ce97a29e6a10e209f18e3746 /text.py
parent64dc61c08d4e37bedd5fa1b3a188ee03adcdbb45 (diff)
downloadanaconda-492e53485c6f2510ded63d06c1b1cb67b96e1835.tar.gz
anaconda-492e53485c6f2510ded63d06c1b1cb67b96e1835.tar.xz
anaconda-492e53485c6f2510ded63d06c1b1cb67b96e1835.zip
fix for the infinite f1 loopy text mode online help thing
Diffstat (limited to 'text.py')
-rw-r--r--text.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/text.py b/text.py
index f051aa54b..dd1dc372e 100644
--- a/text.py
+++ b/text.py
@@ -145,7 +145,12 @@ class ProgressWindow:
self.screen.refresh()
class InstallInterface:
- def helpWindow(self, screen, key, firstTime=1):
+ def helpWindow(self, screen, key):
+ if key == "helponhelp":
+ if self.showingHelpOnHelp:
+ return None
+ else:
+ self.showingHelpOnHelp = 1
try:
f = None
@@ -165,15 +170,12 @@ class InstallInterface:
continue
break
-
if not f:
- if firstTime:
- return self.helpWindow(screen, "helponhelp", firstTime=0)
- else:
- ButtonChoiceWindow(screen, _("Help not available"),
- _("No help is available for this install."),
- buttons=[TEXT_OK_BUTTON])
- return None
+ ButtonChoiceWindow(screen, _("Help not available"),
+ _("No help is available for this "
+ "step of the install."),
+ buttons=[TEXT_OK_BUTTON])
+ return None
l = f.readlines()
while not string.strip(l[0]):
@@ -206,6 +208,7 @@ class InstallInterface:
g.add(bb, 0, 1, growx=1)
g.runOnce()
+ self.showingHelpOnHelp = 0
except:
import traceback
(type, value, tb) = sys.exc_info()
@@ -305,6 +308,7 @@ class InstallInterface:
signal.signal(signal.SIGINT, signal.SIG_IGN)
signal.signal(signal.SIGTSTP, signal.SIG_IGN)
self.screen = None
+ self.showingHelpOnHelp = 0
def __del__(self):
if self.screen: