diff options
Diffstat (limited to 'iw/use_gui.py')
-rw-r--r-- | iw/use_gui.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/iw/use_gui.py b/iw/use_gui.py index 8fcb199..b3bf64b 100644 --- a/iw/use_gui.py +++ b/iw/use_gui.py @@ -37,7 +37,22 @@ import gettext _ = lambda x: gettext.ldgettext("anaconda", x) class UseWindow(InstallWindow): + + buttons = [] + use_profile = [] + def getNext(self): + use = [] + for button in self.buttons: + if button.get_property("active"): + use.append(button.get_property("label")) + + for flag in use: + if flag not in use_profile: # flag enabled by user, disabled by profile + self.anaconda.use_flags.append(flag) + for flag in use_profile: + if flag not in use: # flag is disabled by user, enabled by profile + self.anaconda.use_flags.append("-"+flag) return None def getScreen(self, anaconda): @@ -85,6 +100,8 @@ class UseWindow(InstallWindow): table.attach(cb, 0, 1, rows, rows+1, gtk.FILL) table.attach(l, 1, 2, rows, rows+1) + + self.buttons.append(cb) self.use_profile = use_enabled |