Tkinter: Selecting one item in each of two listboxes

Fredrik Lundh fredrik at pythonware.com
Tue Apr 20 02:21:32 EDT 2004


Jeffrey Barish wrote:

> I have an application that produces two listboxes.  I would like to be
> able to select one of the items in the first listbox and one of the
> items in the second listbox.  However, when I make my selection in the
> second listbox, the selected item in the first listbox gets deselected.
> Is there a way to do this?  I tried setting selectmode to MULTIPLE, but
> that option only allows me to select multiple items in one of the
> listboxes (both of which get deselected when I make a selection in the
> second listbox).

see the discussion of "exportselection" on the listbox patterns page:

http://www.pythonware.com/library/tkinter/introduction/listbox.htm
=> patterns

</F>







More information about the Python-list mailing list