Colors
Table 38-1 lists the resource names for color attributes. The table indicates what widgets use the different color attributes. Remember to use all lowercase and a leading dash when specifying attributes in a Tcl command.
background | The normal background color. All widgets. |
bg | Short for background. Command line only. |
foreground | The normal foreground color. Widgets: button, checkbutton, entry, label, listbox, menu, menubutton, message, radiobutton, scale, and text. |
fg | Short for foreground. Command line only. |
activeBackground | The background when a mouse button will take an action. Widgets: button, checkbutton, menu, menubutton, radiobutton, scale, and scrollbar. |
activeForeground | The foreground when the mouse ... |
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.