Name
DirList
- tixDirList
pathName
[option value
...] The tixDirList command creates a new tixDirList mega-widget named
path-Name
. ThetixDirList
class is derived from thetixScrolledHList
class. It displays a list of the subdirectories and parent directory of a target directory. The user can choose one of the directories or change to another directory.
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.
- -root
directory
(root
,Root
) Name of the root directory.
- -rootname
string
(rootName
,RootName
) Text string to display as the root directory. Default is same as -root option.
- -value
directory
(value
,Value
) Name of ...
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.