]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
new tests
authormsw <msw>
Tue, 13 Jul 1999 15:40:07 +0000 (15:40 +0000)
committermsw <msw>
Tue, 13 Jul 1999 15:40:07 +0000 (15:40 +0000)
peanuts.py

index c5ec8bfb45a6ca79c91004052b3381bd133fc768..a7d5688edc71f099bf88e3f8719e0462f9cbccd6 100755 (executable)
@@ -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))