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.
Thank you.
General Listbox question.
|
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.
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
Sep-05-2020, 12:59 PM
Thank you.
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
Sep-06-2020, 07:36 PM
Thank you Larz.
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
python can - general question | caslor | 0 | 1,526 |
Jul-14-2022, 05:21 PM Last Post: caslor |
|
a general question | barryjo | 5 | 2,519 |
Feb-01-2022, 10:12 PM Last Post: Gribouillis |
|
General Programming Question with Dictionary | giddyhead | 12 | 4,810 |
Jan-10-2022, 10:12 AM Last Post: Pedroski55 |
|
![]() |
General programming question (input string)[ | jamie_01 | 2 | 2,403 |
Jan-08-2022, 12:59 AM Last Post: BashBedlam |
Question about formula implementation in general format | Alienspecimen | 0 | 2,198 |
Mar-01-2021, 08:39 PM Last Post: Alienspecimen |
|
General list size question to solve problem | Milfredo | 3 | 3,147 |
Sep-27-2020, 08:42 AM Last Post: Milfredo |
|
General question about serialization/deserialization in python | local | 1 | 2,303 |
Jan-28-2020, 04:35 AM Last Post: Larz60+ |
|
General Programming Question | Qui_Ten | 1 | 2,759 |
Jan-14-2019, 11:15 AM Last Post: steve_shambles |