diff options
author | pnfisher <pnfisher> | 1999-09-15 00:08:56 +0000 |
---|---|---|
committer | pnfisher <pnfisher> | 1999-09-15 00:08:56 +0000 |
commit | e144b1131287ad3d03ebbe47812f182d452d2acb (patch) | |
tree | a7eaceb73cbf13ab3cc784b257537c6c8e81a8f7 /iw | |
parent | d8fb470c27c0ff9354a261cfd5b174860a38c115 (diff) | |
download | anaconda-e144b1131287ad3d03ebbe47812f182d452d2acb.tar.gz anaconda-e144b1131287ad3d03ebbe47812f182d452d2acb.tar.xz anaconda-e144b1131287ad3d03ebbe47812f182d452d2acb.zip |
xf86config no longer depends on gtk.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/keyboard.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/iw/keyboard.py b/iw/keyboard.py index 1eb979488..4c0ef98e5 100644 --- a/iw/keyboard.py +++ b/iw/keyboard.py @@ -13,19 +13,22 @@ class KeyboardWindow (InstallWindow): ics.setNextEnabled (TRUE) self.kb = xkb.XKB () self.rules = self.kb.getRules () + rules = _xkb.get_rulesbase () + self.rulesbase = rules[string.rfind (rules, "/")+1:] + self.model = "pc101" + self.layout = "en_US" + self.variant = "" def getNext (self): -# self.todo.keyboard.set (self.keyboardList.get_selection ()[0].children ()[0].get ()) + self.todo.x.setKeyboard (self.rulesbase, self.model, self.layout, self.variant, "") return None def select_row (self, clist, row, col, event): - model = self.modelList.get_row_data (self.modelList.selection[0]) - layout = self.layoutList.get_row_data (self.layoutList.selection[0]) - variant = self.variantList.get_row_data (self.variantList.selection[0]) - options = "complete" + self.model = self.modelList.get_row_data (self.modelList.selection[0]) + self.layout = self.layoutList.get_row_data (self.layoutList.selection[0]) + self.variant = self.variantList.get_row_data (self.variantList.selection[0]) - self.kb.setRule (model, layout, variant, options) - self.todo.x.setKeyboard (model, layout, variant, "") + self.kb.setRule (self.model, self.layout, self.variant, "complete") def getScreen (self): box = GtkVBox (FALSE, 5) |