summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-19 18:59:31 +0000
committerMike Fulbright <msf@redhat.com>2002-06-19 18:59:31 +0000
commitcb04909cab57046cd917584e541c5f0896512eba (patch)
tree39c59e19f0069f51e8916ee83a98ec3f0d2fb07a /text.py
parent3b77558d92d422443fd8e9dfa2ad64a4997846e5 (diff)
downloadanaconda-cb04909cab57046cd917584e541c5f0896512eba.tar.gz
anaconda-cb04909cab57046cd917584e541c5f0896512eba.tar.xz
anaconda-cb04909cab57046cd917584e541c5f0896512eba.zip
strip keyaccel underscore chars if in string, only useful for GUI
Diffstat (limited to 'text.py')
-rw-r--r--text.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/text.py b/text.py
index 6bb59e7ef..23d2e33e0 100644
--- a/text.py
+++ b/text.py
@@ -259,11 +259,14 @@ class InstallInterface:
else:
return 0
elif type == "custom":
- rc = ButtonChoiceWindow(self.screen, title, text,
- buttons=custom_buttons)
-
+ tmpbut = []
+ for but in custom_buttons:
+ tmpbut.append(string.replace(but,"_",""))
+
+ rc = ButtonChoiceWindow(self.screen, title, text, buttons=tmpbut)
+
idx = 0
- for b in custom_buttons:
+ for b in tmpbut:
if string.lower(b) == rc:
return idx != 0
idx = idx + 1