O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

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

Listbox Attributes

Table 32-9 lists the listbox widget attributes. The table uses the resource name for the attribute, which has capitals at internal word boundaries. In Tcl commands these options are specified with a dash and all lowercase.

Table 32-9. Listbox attribute resource names.
backgroundBackground color (also bg).
borderWidthExtra space around the edge of the text.
cursorCursor to display when mouse is over the widget.
exportSelectionIf true, then the selected text is exported via the X selection mechanism.
fontFont for the text.
foregroundForeground color (also fg).
heightNumber of lines in the listbox.
highlightBackgroundFocus highlight color when widget does not have focus.
highlightColorFocus highlight color when widget has focus.
highlightThickness ...

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