query ttk::treeview for all nodes?



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.
.



Relevant Pages

  • TreeView Help Help Help
    ... Need help with tree View ... I have a treeview control on a form & I can populate the first level ... Batchid this is equal to Batch_ID from the other query ... Dim StrOrderKey As String ...
    (microsoft.public.access.formscoding)
  • Re: what is the correct data structure to use with this problem?
    ... I'm just stumped with how the tree should look... ... >false query and move to the next, retaining the fact that the false ... You save time in each rule evaluating P1 assuming ... >> queries) but I hope it clarifies. ...
    (comp.programming)
  • Re: Easier access to PropertyInfo
    ... The connections are made between properties of nodes. ... the tree represents a query to a custom datamodel. ... be evaluated in the correct order, and then their update methods are ...
    (microsoft.public.dotnet.languages.csharp)
  • question about/problem with tree view
    ... I have a form with a tree on it. ... a query hits the database ... and then I iterate through the query results and each record returned ... I never really set the window state to maximized... ...
    (comp.lang.pascal.delphi.misc)
  • RE: HOW TO: Treeview, obtain the first node index in a sorted Tree
    ... query alphabetically and determine the associated with that first ... "Kevin McCartney" wrote: ... for it in the treeview to return its index. ... the tree and if it the text started with a Z it would appear at the bottom. ...
    (microsoft.public.access.formscoding)