]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
Do append((a,b)) instead of append(a,b) - the tuple is no longer implicitly created...
authorteg <teg>
Fri, 15 Dec 2000 21:33:55 +0000 (21:33 +0000)
committerteg <teg>
Fri, 15 Dec 2000 21:33:55 +0000 (21:33 +0000)
snack.py

index ade1a5bf2e262e4bb789f3a43e004588e5a54c5e..b819d8e5c48cd1b6ceb2a5776c5a44ddbc3313ef 100644 (file)
--- a/snack.py
+++ b/snack.py
@@ -329,7 +329,7 @@ class RadioBar(Grid):
        Grid.__init__(self, 1, len(buttonlist))
        for (title, value, default) in buttonlist:
            b = self.group.add(title, value, default)
-           self.list.append(b, value)
+           self.list.append((b, value))
            self.setField(b, 0, self.item, anchorLeft = 1)
            self.item = self.item + 1
 
@@ -357,7 +357,7 @@ class ButtonBar(Grid):
                self.hotkeys[hotkey] = value
 
            b = Button(title)
-           self.list.append(b, value)
+           self.list.append((b, value))
            self.setField(b, self.item, 0, (1, 0, 1, 0))
            self.item = self.item + 1