Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General Listbox question.
#1
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.
Reply
#2
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
Reply
#3
Thank you.
Reply
#4
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
Reply
#5
Thank you Larz.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python can - general question caslor 0 1,125 Jul-14-2022, 05:21 PM
Last Post: caslor
  a general question barryjo 5 1,522 Feb-01-2022, 10:12 PM
Last Post: Gribouillis
  General Programming Question with Dictionary giddyhead 12 2,744 Jan-10-2022, 10:12 AM
Last Post: Pedroski55
Big Grin General programming question (input string)[ jamie_01 2 1,608 Jan-08-2022, 12:59 AM
Last Post: BashBedlam
  Question about formula implementation in general format Alienspecimen 0 1,669 Mar-01-2021, 08:39 PM
Last Post: Alienspecimen
  General list size question to solve problem Milfredo 3 2,369 Sep-27-2020, 08:42 AM
Last Post: Milfredo
  General question about serialization/deserialization in python local 1 1,852 Jan-28-2020, 04:35 AM
Last Post: Larz60+
  General Programming Question Qui_Ten 1 2,193 Jan-14-2019, 11:15 AM
Last Post: steve_shambles

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020