diff options
author | bfox <bfox> | 2000-12-20 16:09:03 +0000 |
---|---|---|
committer | bfox <bfox> | 2000-12-20 16:09:03 +0000 |
commit | 2c3fcef40ab8817dddb8cf1697b62540737f1621 (patch) | |
tree | b4beddfc0fef720d6f37ad38ea26c74b2250be98 /iw | |
parent | f6d40d761cf0bd961d03a5f94c776954480b6ed8 (diff) | |
download | anaconda-2c3fcef40ab8817dddb8cf1697b62540737f1621.tar.gz anaconda-2c3fcef40ab8817dddb8cf1697b62540737f1621.tar.xz anaconda-2c3fcef40ab8817dddb8cf1697b62540737f1621.zip |
Fixed strange behavior in lilo label list with the new checkboxes.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/lilo_gui.py | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/iw/lilo_gui.py b/iw/lilo_gui.py index 7357f541e..325334d1d 100644 --- a/iw/lilo_gui.py +++ b/iw/lilo_gui.py @@ -172,17 +172,28 @@ class LiloWindow (InstallWindow): def defaultUpdated(self, *args): + print "Inside defaultUpdated" if self.ignoreSignals: return index = self.imageList.selection[0] - + + if range(self.count) > 0: + print "hello" + + for i in range(self.count): + print "i in range self.count is ", i + self.imageList.set_pixmap(i, 0, self.checkMark_Off) + if self.defaultCheck.get_active(): + print "inside self.defaultCheck.get_active()" if self.default != None: - self.imageList.set_text(self.default, 0, "") +# self.imageList.set_text(self.default, 0, "") + self.imageList.set_pixmap(self.default, 0, self.checkMark_Off) self.imageList.set_pixmap(index, 0, self.checkMark) self.default = index else: + print "inside else" # self.imageList.set_text(index, 0, "") self.imageList.set_pixmap(index, 0, self.checkMark_Off) self.default = None @@ -339,7 +350,7 @@ class LiloWindow (InstallWindow): self.numImages = len(sortedKeys) self.default = None - count = 0 + self.count = 0 self.types = [] for n in sortedKeys: (label, type) = imageList[n] @@ -347,11 +358,14 @@ class LiloWindow (InstallWindow): self.imageList.append(("", "/dev/" + n, self.typeName(type), label)) if (label == defaultLabel): - self.default = count - self.imageList.set_pixmap(count, 0, self.checkMark) + self.default = self.count + self.imageList.set_pixmap(self.count, 0, self.checkMark) else: - self.imageList.set_pixmap(count, 0, self.checkMark_Off) - count = count + 1 + self.imageList.set_pixmap(self.count, 0, self.checkMark_Off) + self.count = self.count + 1 + + print self.count + print range(self.count) self.imageList.connect("select_row", self.labelSelected) self.imageList.columns_autosize () |