-activebackground -disabledcolor -justify -activeforeground -font -relief -anchor -foreground -takefocus -background -highlightcolor -text -bitmap -highlightthickness -underline -borderwidth -image
A checkbutton is a widget that displays a textual string, bitmap or image and a square called an indicator. If text is displayed, it must all be in a single font, but it can occupy multiple lines on the screen (if it contains newlines) and one of the characters may optionally be underlined using the underline option. A checkbutton has all of the behaviour of a simple button, including the following: it can display itself in either of three different ways, according to the state option; it can be made to appear raised, sunken, or flat; and it invokes a Tk command whenever mouse button 1 is clicked over the checkbutton.
In addition, checkbuttons can be selected. If a checkbutton is selected then the indicator is normally drawn with a sunken relief and a special colour, and a Tk variable associated with the checkbutton is set to the onvalue (normally 1). If the checkbutton is not selected, then the indicator is drawn with a raised relief and no special colour, and the associated variable is set to the offvalue (normally 0). The variable name may be modified with options on the command line (-variable option). Configuration options may also be used to modify the way the indicator is displayed (or whether it is displayed at all). By default a checkbutton is configured to select and deselect itself on alternate button clicks.
pathname option ?arg arg ...?
If the checkbutton's state is disabled then none of the above actions occur: the checkbutton is completely non-responsive.
The behaviour of checkbuttons can be changed by defining new bindings for individual widgets.
CHECKBUTTON(9 ) | Rev: Thu Feb 15 14:44:05 GMT 2007 |