Python Forum
Python Forum
>
Python Coding
>
General Coding Help
> General Listbox question.
Full Version:
General Listbox question.
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Milfredo
Sep-05-2020, 08:09 AM
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.
Larz60+
Sep-05-2020, 11:48 AM
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
Milfredo
Sep-05-2020, 12:59 PM
Thank you.
Larz60+
Sep-05-2020, 01:23 PM
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
Milfredo
Sep-06-2020, 07:36 PM
Thank you Larz.
Python Forum
>
Python Coding
>
General Coding Help
> General Listbox question.