diff options
author | David Lehman <dlehman@redhat.com> | 2009-12-09 01:12:59 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-12-09 15:12:59 -0600 |
commit | 429d97802d036413ddfc3f60148a39618e032b6e (patch) | |
tree | f1b56d37dcfa08205ef4d4def18435da5c80d38a /iw/partition_ui_helpers_gui.py | |
parent | 0c2f4b7cdc8dac92611d2a4661396a07b7b4f9c4 (diff) | |
download | anaconda-429d97802d036413ddfc3f60148a39618e032b6e.tar.gz anaconda-429d97802d036413ddfc3f60148a39618e032b6e.tar.xz anaconda-429d97802d036413ddfc3f60148a39618e032b6e.zip |
Add per-row control over sensitive property for CheckList and WideCheckList.
This is optional. To enable it, add a boolean column as the last column
of the TreeStore you pass in and specify 'sensitivity=True' when
instantiating WideCheckBox or CheckBox.
Diffstat (limited to 'iw/partition_ui_helpers_gui.py')
-rw-r--r-- | iw/partition_ui_helpers_gui.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py index 5a6648235..39b2561f2 100644 --- a/iw/partition_ui_helpers_gui.py +++ b/iw/partition_ui_helpers_gui.py @@ -48,9 +48,10 @@ class WideCheckList(checklist.CheckList): checklist.CheckList.toggled_item(self, data, row) - def __init__(self, columns, store, clickCB=None): - checklist.CheckList.__init__(self, columns=columns, - custom_store=store) + def __init__(self, columns, store, clickCB=None, sensitivity=False): + checklist.CheckList.__init__(self, columns=columns, + custom_store=store, + sensitivity=sensitivity) # make checkbox column wider column = self.get_column(columns) |