Name
Tree
- tixTree
pathname
[option value
...] The tixTree command creates a new tixTree mega-widget named
pathName
. ThetixTree
class is derived from thetixVTree
class. It provides a display of hierarchical data in a tree form. The user can adjust the view of the tree by opening (expanding) or closing (collapsing) parts of the tree.
Widget-Specific Options
- -browsecmd
tclCommand
(browseCmd
,BrowseCmd
) Command to call whenever the user browses an entry (usually by a single click). The pathName of the entry is appended as an argument.
- -closecmd
tclCommand
(closeCmd
,CloseCmd
) Command to call whenever an expanded entry needs to be closed. The
pathName
of the entry is appended as an argument. The default action is to hide all child entries of the specified entry.- -command
tclCommand
(command
,Command
) Command to call whenever the user activates an entry (usually by a double click). The pathName of the entry is appended as an argument.
- -ignoreinvoke
Boolean
(ignoreInvoke
,IgnoreInvoke
) If
true
, an entry is not expanded or collapsed when the entry is activated. The default isfalse
.- -opencmd
tclCommand
(openCmd
,OpenCmd
) Command to call whenever an expanded entry needs to be opened. The pathName of the entry is appended as an argument. The default action is to show all child entries of the specified entry.
Subwidgets
hlist
The tixHList mega-widget that displays the tree. Entries to the tree are added directly to the
hlist
subwidget using its add method.hsb
The horizontal scrollbar widget.
vsb
The vertical ...
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.