Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accessing tree nodes

2 views
Skip to first unread message

anil.p...@gmail.com

unread,
Sep 29, 2005, 9:21:32 AM9/29/05
to
hi
I am using a Bwidget tree. can any one tell me how to get the text
displayed on each node when corresponding node is clicked.

Torsten Reincke

unread,
Sep 29, 2005, 9:37:56 AM9/29/05
to

You need to specify the "-selectcommand" for the BWidget tree likr for
example:

Tree .t -selectcommand ShowItem

The path to the tree and the node name will be automatically appended
to the command. So your command could look like this:

proc ShowItem {tree node} {
set nodeText [$tree itemcget $node -text]
}

I hope, that helps!

Torsten

0 new messages