Re: accessing tree nodes
- From: "Torsten Reincke" <reincke@xxxxxxxxxxxxxxxx>
- Date: 29 Sep 2005 06:37:56 -0700
anil.pundoor@xxxxxxxxx wrote:
> 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.
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
.
- References:
- accessing tree nodes
- From: anil . pundoor
- accessing tree nodes
- Prev by Date: Re: when is it apt to use classes in preference to only arrays and lists
- Next by Date: tk_chooseDirectory -mustexist 1
- Previous by thread: accessing tree nodes
- Next by thread: tk_chooseDirectory -mustexist 1
- Index(es):
Relevant Pages
|