treeview

List directory tree structure in python from a list of path file

List directory tree structure in python from a list of path file Question: The question is intended to broaden the scope of a question already answered on stackoverflow by the topic "List directory tree structure in python?". The goal is to form a list of strings that visually represent a directory tree, with branchs. But …

Total answers: 3

TreeView in tkinter freez while updating

TreeView in tkinter freez while updating Question: I am trying to update a treeview every second from a database with clients and ping time status, if the successful ping was before some:X time the row will be red(or odd red to distinguish). update_tree always is running with and sleeping 1 sec between each loop. Also …

Total answers: 1

TreeView to JSON in Python

TreeView to JSON in Python Question: [Edit: apparently this file looks similar to h5 format] I am trying to extract metadata from a file with extension of (.dm3) using hyperspy in Python, I am able to get all the data but it’s getting saved in a treeview, but I need the data in Json I …

Total answers: 2

Item 'layer 7' already exists in the treeview : in Maya

Item 'layer 7' already exists in the treeview : in Maya Question: I want to add two different items that have the same name to a TreeView but they have a different parent. But I get the error: Item ‘layer 7’ already exists in the TreeView What should I do to avoid this. My code: …

Total answers: 2

How to get the value of a selected treeview item?

How to get the value of a selected treeview item? Question: I’ve looked at several posts regarding this and they’ve done the following -The output i get is blank -The output i get is the id, which is practically useless unless somebody can show me how to manipulate it -No output at all i just …

Total answers: 3

Hiding TreeView Columns In Tkinter

Hiding TreeView Columns In Tkinter Question: I’ve created a TreeView but I want to be able to hide certain columns when I call specific functions. So this TreeView gets initially created but when I call a function lets say all of the columns are hidden except for [trackArtist]. How do I do this? I can …

Total answers: 4

Python: create a nested dictionary from a list of parent child values

Python: create a nested dictionary from a list of parent child values Question: Here is the input: list_child_parent= [ #first value is child, second is parent (0, 1), (1, 3), (8, 7), (3, 6), (4, 3), (5, 3) ] The output needs to create a nested dictionary tree using these values. The tree will never …

Total answers: 3

How to clear an entire Treeview with Tkinter

How to clear an entire Treeview with Tkinter Question: My program uses a ttk.Treeview as a table and fills it with many numbers. I want to clear the ttk.Treeview when I press a button in the window. Is there a simple way to clear the ttk.Treeview? Thanks. Asked By: katze || Source Answers: Ok, I …

Total answers: 3