O'Reilly logo

Tcl/Tk in a Nutshell by Paul Raines, Jeff Tranter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

TList

tixTList pathName [option value...]

The tixTList command creates a new tixTList widget named pathName.

Standard Options

-background

-borderwidth

-cursor

-font

-foreground

-highlightcolor

-highlightthickness

-padx

-pady

-relief

-selectbackground

-selectborderwidth

-selectforeground

-takefocus

-xscrollcommand

-yscrollcommand

  

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.

-command tclCommand (command, Command)

Command to call whenever the user browses an entry (usually by a double click). The pathname of the entry is appended as an argument.

-height amount (height, Height)

Height for the window in lines of characters.

-itemtype type (itemType, ItemType)

The default item type for a new entry. The default is text.

-orient orient (orient, Orient)

Order for tabularizing the list entries. Orient may be vertical (entries are arranged from top to bottom in columns) or horizontal (entries are arranged from left to right in rows).

-selectmode mode (selectMode, SelectMode)

Specifies one of several styles understood by the default bindings for manipulation of the selection. Supported styles are single, browse, multiple, and extended. Any arbitrary string is allowed, but the programmer must extend the bindings to support it.

-sizecmd tclCommand (sizeCmd, SizeCmd)

Command to call whenever the tixTList changes its size.

-state state (state, State)

Whether tixTList ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required