By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,334 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

Tkinter: Selecting one item in each of two listboxes

P: n/a
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).

I create the listboxes as follows:

listbox1_frame = Frame(root)
listbox1 = Listbox(listbox1_frame, width = 40, height = 12)

listbox2_frame = Frame(root)
listbox2 = Listbox(listbox2_frame, width = 40, height = 8)

Jeffrey Barish
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.