Re: Polling selections from a listbox (Tkinter)

2005-02-28 Thread Eric Brunel
On 26 Feb 2005 03:48:16 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: [snip] Obviously when this starts up this is going to show selection #0 inside the label box. How do I make sure that whatever is arbitrarily selected ends up in the label box as this gui runs? I tried doing a bind: self.listbo

Polling selections from a listbox (Tkinter)

2005-02-26 Thread Harlin Seritt
I am trying to poll selections from a listbox but can't seem to get it to work correctly. class pollstuff: def __init__(self, master): self.listbox = Listbox(master) self.listbox.pack() names = ['Bob', 'Neal', 'Mike'] for n in names: self.listbox.insert(END, n)