diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-01 23:27:46 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-01 23:27:46 +0000 |
commit | bbec0ee1f07785dec51edca5319557a13180de0a (patch) | |
tree | b022bc8aa2cf9832112d2bdf6d2e7abaf6c44689 /iw | |
parent | cf19afb6d00150e6faa5a267e72955723e9f94e7 (diff) | |
download | anaconda-bbec0ee1f07785dec51edca5319557a13180de0a.tar.gz anaconda-bbec0ee1f07785dec51edca5319557a13180de0a.tar.xz anaconda-bbec0ee1f07785dec51edca5319557a13180de0a.zip |
this works
Diffstat (limited to 'iw')
-rw-r--r-- | iw/xconfig.py | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/iw/xconfig.py b/iw/xconfig.py index f4424b1b1..059ac44ca 100644 --- a/iw/xconfig.py +++ b/iw/xconfig.py @@ -18,14 +18,24 @@ class XCustomWindow (InstallWindow): def __init__ (self, ics): InstallWindow.__init__ (self, ics) - self.ics.setNextEnabled (FALSE) - self.todo = ics.getToDo () ics.setTitle (_("Customize X Configuration")) ics.setHTML ("<HTML><BODY>This is the configuration customization screen<</BODY></HTML>") - + self.ics.setNextEnabled (TRUE) + self.didTest = 0 + def getNext (self): + newmodes = {} + + for depth in self.toggles.keys (): + newmodes[depth] = [] + for (res, button) in self.toggles[depth]: + if button.get_active (): + newmodes[depth].append (res) + + self.todo.x.modes = newmodes + def getScreen (self): box = GtkVBox (FALSE, 5) box.set_border_width (5) @@ -35,12 +45,16 @@ class XCustomWindow (InstallWindow): depths = self.todo.x.modes.keys () depths.sort () + self.toggles = {} for depth in depths: + self.toggles[depth] = [] vbox = GtkVBox (FALSE, 5) vbox.pack_start (GtkLabel (depth + _("Bits per Pixel")), FALSE) for res in self.todo.x.modes[depth]: - vbox.pack_start (GtkCheckButton (res), FALSE) - + button = GtkCheckButton (res) + self.toggles[depth].append (res, button) + vbox.pack_start (button, FALSE) + hbox.pack_start (vbox) box.pack_start (hbox, FALSE) |