query ttk::treeview for all nodes?
- From: Clint <ckhannah@xxxxxxxxx>
- Date: Wed, 30 Apr 2008 07:05:41 -0700 (PDT)
Using Tcl 8.5.2 and tile 0.8.2:
I am trying to find the best way to query the tree for the all current
nodes in the tree so that I can easily delete everything in the tree.
I have played with keeping a list or an array around when I build the
tree to use that, but gets a little challenging when adding or
deleting a node or two from a large tree.
I have used the Bwidget tree in the past and could get all nodes (and
delete) by a command like:
-> $tree delete [ $tree nodes root ]
My guess is that the treeview builds nodes that are a sibling to the
root node and not a child?
Also, I do not see any index function to query for the index number of
the tree ($tree index 0). So, it seems like the only way I can get
all the nodes in the tree is knowing all the IDs of the nodes that
were inserted?
Thanks for any input.
.
- Follow-Ups:
- Re: query ttk::treeview for all nodes?
- From: Aric Bills
- Re: query ttk::treeview for all nodes?
- Prev by Date: Re: how to get values from xml
- Next by Date: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Previous by thread: VC++ compiler error
- Next by thread: Re: query ttk::treeview for all nodes?
- Index(es):
Relevant Pages
|