Tkinter newbie question

Fredrik Lundh fredrik at effbot.org
Wed Dec 13 12:15:24 EST 2000


Samuel A. Falvo II wrote:
> I've set up a basic user interface using Tkinter.  One of the controls is a
> listbox.  However, I cannot find any documentation on how to read the
> current state of the listbox (e.g., what, if any, items are currently
> selected).

selection = list.curselection()

for more info, see

http://www.pythonware.com/library/tkinter/introduction/listbox.htm
=> patterns (and methods)

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->






More information about the Python-list mailing list