From b2fe40a7915cd50ec2eef5083283cd49c7dd6356 Mon Sep 17 00:00:00 2001 From: johnsonm Date: Tue, 28 Oct 1997 16:13:27 +0000 Subject: [PATCH] Listbox.insert changed. --- peanuts.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/peanuts.py b/peanuts.py index a906710..49e56ba 100755 --- a/peanuts.py +++ b/peanuts.py @@ -5,9 +5,9 @@ from snack import * screen = SnackScreen() li = Listbox(height = 3, width = 20, returnExit = 1) -li.append("First") -li.append("Second") -li.append("Third") +li.append("First", 1) +li.append("Second", 2) +li.append("Third", 3) rb = RadioBar(screen, (("This", "this", 0), ("Default", "default", 1), ("That", "that", 0))) @@ -22,6 +22,7 @@ result = g.run_once() screen.finish() +print result print "listbox:", li.current() print "rb:", rb.getSelection() print "bb:", bb.buttonPressed(result) -- 2.47.3