diff options
author | bfox <bfox> | 2000-12-11 21:41:45 +0000 |
---|---|---|
committer | bfox <bfox> | 2000-12-11 21:41:45 +0000 |
commit | 4484f7ca2566896a54fc61527cf070270485e5d1 (patch) | |
tree | f08493b260f38931e21188764b6924aadb95bb1d | |
parent | e9a1ae7c952410f8bda4cdafcaa070d73a70951e (diff) | |
download | anaconda-4484f7ca2566896a54fc61527cf070270485e5d1.tar.gz anaconda-4484f7ca2566896a54fc61527cf070270485e5d1.tar.xz anaconda-4484f7ca2566896a54fc61527cf070270485e5d1.zip |
Fixed traceback bug if the user tried to select or unselect all when nothing was in the clist.
-rw-r--r-- | iw/package_gui.py | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py index e58f54eba..a9b2f56b2 100644 --- a/iw/package_gui.py +++ b/iw/package_gui.py @@ -224,6 +224,7 @@ class IndividualPackageSelectionWindow (InstallWindow): def select (self, ctree, node, *args): +# print "select" self.clear_package_desc () self.packageList.freeze () self.packageList.clear () @@ -270,8 +271,13 @@ class IndividualPackageSelectionWindow (InstallWindow): self.packageList.column_titles_active () + self.selectAllButton.set_sensitive (TRUE) + self.unselectAllButton.set_sensitive (TRUE) + except: # print "Except called" + self.selectAllButton.set_sensitive (FALSE) + self.unselectAllButton.set_sensitive (FALSE) pass self.packageList.thaw () @@ -389,13 +395,16 @@ class IndividualPackageSelectionWindow (InstallWindow): self.totalSizeLabel = GtkLabel(_("Total size: ")) hbox.pack_start(self.totalSizeLabel, FALSE, FALSE, 0) - selectAllButton = GtkButton(_("Select all in group")) - hbox.pack_start(selectAllButton, FALSE) - selectAllButton.connect('clicked', self.select_all) + self.selectAllButton = GtkButton(_("Select all in group")) + hbox.pack_start(self.selectAllButton, FALSE) + self.selectAllButton.connect('clicked', self.select_all) + + self.unselectAllButton = GtkButton(_("Unselect all in group")) + hbox.pack_start(self.unselectAllButton, FALSE) + self.unselectAllButton.connect('clicked', self.unselect_all) - unselectAllButton = GtkButton(_("Unselect all in group")) - hbox.pack_start(unselectAllButton, FALSE) - unselectAllButton.connect('clicked', self.unselect_all) + self.selectAllButton.set_sensitive (FALSE) + self.unselectAllButton.set_sensitive (FALSE) descVBox.pack_start (hbox, FALSE) |