Default value for Listbox (Tkinter)

Harlin Seritt harlinseritt at yahoo.com
Thu Feb 24 21:46:28 EST 2005


Whenever I set up something similar:

vals = ['1', '2','3']
for v in vals:
   listbox.inset(END, v)

I notice that when this listbox is displayed, there is never a default
value. How can I make sure that one of the indices is selected by
default?

Thanks,

Harlin




More information about the Python-list mailing list