From: msw Date: Tue, 13 Jul 1999 15:40:07 +0000 (+0000) Subject: new tests X-Git-Tag: r0-50~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c6697500eb39a513cb632f74f82fc8d670055e1;p=thirdparty%2Fnewt.git new tests --- diff --git a/peanuts.py b/peanuts.py index c5ec8bf..a7d5688 100755 --- a/peanuts.py +++ b/peanuts.py @@ -14,10 +14,18 @@ rb = RadioBar(screen, (("This", "this", 0), bb = ButtonBar(screen, (("Ok", "ok"), ("Cancel", "cancel"))) ct = CheckboxTree(height = 5, scroll = 1) -ct.append("Foo", 1, 1) -ct.append("Bar", 2, 0) -ct.append("Bang", 3, 1) - +ct.append("Colors") +ct.addItem("Red", (0, snackArgs['append'])) +ct.addItem("Yellow", (0, snackArgs['append'])) +ct.addItem("Blue", (0, snackArgs['append'])) +ct.append("Flavors") +ct.append("Numbers") +ct.addItem("1", (2, snackArgs['append'])) +ct.addItem("2", (2, snackArgs['append'])) +ct.addItem("3", (2, snackArgs['append'])) +ct.append("Names") +ct.append("Months") +ct.append("Events") g = GridForm(screen, "My Test", 1, 4) g.add(li, 0, 0) g.add(rb, 0, 1, (0, 1, 0, 1))