Name

FileComboBox

tixFileComboBox pathName [option value...]

The tixFileComboBox command creates a new tixFileComboBox mega-widget named pathName. The tixFileComboBox class is derived from the tix-Primitive class. It provides a combo box for entering file and directory names.

Widget-Specific Options

-command tclCommand (command, Command)

Command to be called when tixFileComboBox is invoked or when its current value is changed. A list describing the file is appended as an argument. The first element of the list is the absolute pathname to the file, the second element is the directory part file’s pathname, and the third element is the base filename.

-defaultfile fileName (defaultFile, DefaultFile)

If the value entered into the tixFileComboBox is a directory, fileName is appended to the value before calling the associated command.

-directory directory (directory, Directory)

Set the current working directory for the tixFileComboBox to directory.

-text fileName (text, Text)

Change the value of the tixFileComboBox to fileName. The associated command is not invoked.

Subwidgets

combo

The tixComboBox mega-widget.

Methods

pathName invoke

Invoke the tixFileComboBox.

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.