Name
DirTree
- tixDirTree
pathName
[option value
...] The tixDirTree command creates a new tixDirTree mega-widget named
pathName
. ThetixDirTree
class is derived from thetixVTree
class. It displays a tree-style list of directories and their subdirectories for the user to choose from.
Widget-Specific Options
- -browsecmd
tclCommand
(browseCmd
,BrowseCmd
) Command to call whenever the user browses on a directory (usually by a single click). The directory is appended as an argument.
- -command
tclCommand
(command
,Command
) Command to call whenever the user activates a directory (usually by a double click). The directory is appended as an argument.
- -dircmd
tclCommand
(dirCmd
,DirCmd
) Command to call when a directory listing is needed. Two arguments are appended: the name of the directory to be listed and a boolean that signifies whether hidden subdirectories should be listed. The Return values should be the list of subdirectories in the given directory. If this option is not specified, the default is to read the directory as a Unix directory.
- -disablecallback
boolean
(disableCallback
,DisableCallback
) Whether callbacks (-command) are disabled.
- -showhidden
boolean
(showHidden
,ShowHidden
) Whether hidden directories should be shown.
- -value
directory
(value
,Value
) Name of the current directory displayed.
Subwidgets
hlist
The tixHList mega-widget that displays the directory list.
hsb
The horizontal scrollbar widget.
vsb
The vertical scrollbar widget.
Methods
pathName
chdirdirectory
Change the current directory to
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.