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.
background | Background color (also bg). |
borderWidth | Extra space around the edge of the text. |
cursor | Cursor to display when mouse is over the widget. |
exportSelection | If true, then the selected text is exported via the X selection mechanism. |
font | Font for the text. |
foreground | Foreground color (also fg). |
height | Number of lines in the listbox. |
highlightBackground | Focus highlight color when widget does not have focus. |
highlightColor | Focus highlight color when widget has focus. |
highlightThickness ... |
Get Practical Programming in Tcl & Tk, Third Edition 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.