Using <<ListboxSelect>> With More Than One Listbox Using <<ListboxSelect>> With More Than One Listbox tkinter tkinter

Using <<ListboxSelect>> With More Than One Listbox


You should always include the exportselection=0 option in the Tkinter Listbox, especially when you have more than one of them onscreen at the same time. The default without this option is a bizarre mode in which the list selection is tied to the system clipboard; simultaneous selections in multiple lists simply cannot exist (and you're trashing anything the user might have put in the clipboard themselves).