Jul-25-2018, 10:05 AM
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.
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.
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?
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.