Python Forum

Full Version: General Listbox question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can not find any videos or text telling me how to take a listbox item and place the text into a variable when user selects an item in the Listbox.

Thank you.
I'm assuming you're using tkinter
I wrote this 4 years ago, but code should still be OK: https://python-forum.io/Thread-Show-Inst...ht=tkinter
It uses a Treeview, but the bindings are very similar to a ListBox
Thank you.
FYI: Here's a link to a most useful tkinter reference manual: https://users.tricity.wsu.edu/~bobl/cpts...er_nmt.pdf
It's dated but so is tkinter, so perfectly OK
Thank you Larz.