Python Forum
[Tkinter] Does anybody know that how to edit tree view on tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Does anybody know that how to edit tree view on tkinter
#2
It makes it twice as hard when you split threads.
I took a look at your code from this post: https://python-forum.io/Thread-Tkinter-T...side-frame
So I assume you are talking about that. You use pack for geometry in that code. I posted that it's very difficult to control geometry in tkinter. Grid gives you much more control than pack, but even that's difficult to use.

As far as accessing the contents of a treeview, what control do you have as it stands now.
  • Can you detect click and/or double-click or mouse?
  • Are you having trouble determining the index of the entry being clicked?
You need to bind the mouse clicks to an event, and create a service routine.
Listview and treeview operate almost identically as far as item selection, clearing, scrolling, etc. are concerned, so any examples for either will suffice for determining how it operates.

You should read:
http://infohost.nmt.edu/tcc/help/pubs/tk...eview.html
and
http://infohost.nmt.edu/tcc/help/pubs/tk...vents.html
Also see: http://nullege.com/codes/search?cq=tkinter.ttk.Treeview
for example code.
The example that I referenced in the previous thread (was a Listview, but same operation) contains code for manipulating events, highlighting, snd clearing that almost certainly would be yhe same for Treeview.
Reply


Messages In This Thread
RE: Does anybody know that how to edit tree view on tkinter - by Larz60+ - Jul-25-2018, 10:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cant set api response as tree in Element tree hey_arnold 4 3,745 Mar-04-2019, 03:25 PM
Last Post: dsarin
  [Flask] Create new project for add user,edit,delete,view users in python with mysql connector chandranmanikandan 0 7,446 Oct-30-2018, 10:19 AM
Last Post: chandranmanikandan

Forum Jump:

User Panel Messages

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