diff options
author | bfox <bfox> | 2001-01-22 17:28:26 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-01-22 17:28:26 +0000 |
commit | a3e2c975c901321ee2b0daeeeb92b0ed5ffcfa02 (patch) | |
tree | 0e968f117532916818b1b41d75019e96a2af8432 /iw | |
parent | fabd0d71b450c8241ec0075f7635ac5e34922f2f (diff) | |
download | anaconda-a3e2c975c901321ee2b0daeeeb92b0ed5ffcfa02.tar.gz anaconda-a3e2c975c901321ee2b0daeeeb92b0ed5ffcfa02.tar.xz anaconda-a3e2c975c901321ee2b0daeeeb92b0ed5ffcfa02.zip |
Pressing the space bar now toggles the rows in the clist.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/language_support_gui.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/iw/language_support_gui.py b/iw/language_support_gui.py index 8b2fbefcd..978c82235 100644 --- a/iw/language_support_gui.py +++ b/iw/language_support_gui.py @@ -122,6 +122,10 @@ class LanguageSupportWindow (InstallWindow): self.language.set_row_data(row, (0, row_data, header)) self.language._update_row (row) + def language_key_press (self, list, event): + if event.keyval == ord(" ") and self.language.focus_row != -1: + self.toggle_row (self.language.focus_row) + # LanguageSupportWindow tag="langsupport" def getScreen (self): self.langs = self.todo.language.getSupported() @@ -163,6 +167,8 @@ class LanguageSupportWindow (InstallWindow): # langs we want to support self.language = checklist.CheckList(1) self.language.connect ('button_press_event', self.support_select_row) + self.language.connect ("key_press_event", self.language_key_press) + self.maxrows = 0 list = [] |