From: teg Date: Fri, 15 Dec 2000 21:33:55 +0000 (+0000) Subject: Do append((a,b)) instead of append(a,b) - the tuple is no longer implicitly created... X-Git-Tag: r0-50-19~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=463f347c86587e46e5b66b2c6a1b67d5e4d68946;p=thirdparty%2Fnewt.git Do append((a,b)) instead of append(a,b) - the tuple is no longer implicitly created in python 2. --- diff --git a/snack.py b/snack.py index ade1a5b..b819d8e 100644 --- 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