Python Forum
[Tkinter] Treeview actions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Treeview actions
#1
So I have been trying to learn a bit of tkinter by reading documentation and watching some videos. I have created a little price list program. It fills a treeview with information from a SQLite file.

I was wondering if there is an action where if I click on one of the lines in the treeview, it loads those values into some text boxes. I would like to load it into the text boxes so that the values can be changed and updated. I have the function working, but right now they have to type the info into the boxes, I thought it would be smoother if they could just click the item in the tree it loads it to the boxes, they make the changes and click the update button.

Is this possible or do I need to use a different widget, or even have to go to like QtPy or something?

TIA
Reply


Messages In This Thread
Treeview actions - by swanysto - Oct-22-2022, 10:58 PM
RE: Treeview actions - by Yoriz - Oct-23-2022, 09:14 AM
RE: Treeview actions - by swanysto - Oct-23-2022, 12:33 PM
RE: Treeview actions - by swanysto - Oct-23-2022, 03:27 PM
RE: Treeview actions - by deanhystad - Oct-24-2022, 08:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] [split] Is there a way to embed a treeview as a row inside another treeview? CyKlop 5 3,497 Oct-20-2021, 12:14 AM
Last Post: CyKlop

Forum Jump:

User Panel Messages

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