diff options
author | Mike Fulbright <msf@redhat.com> | 2002-06-19 18:59:31 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-06-19 18:59:31 +0000 |
commit | cb04909cab57046cd917584e541c5f0896512eba (patch) | |
tree | 39c59e19f0069f51e8916ee83a98ec3f0d2fb07a /text.py | |
parent | 3b77558d92d422443fd8e9dfa2ad64a4997846e5 (diff) | |
download | anaconda-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.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |