checkbutton -
On/off widget
ttk::checkbutton pathName ?options?
A checkbutton widget is used to show or change a setting. It has two states, selected and deselected. The state of the checkbuton may be linked to a Tcl variable.
Name | Database name | Database class |
---|---|---|
-command | command | Command |
A Tcl script to execute whenever the widget is invoked. | ||
-offvalue | offValue | OffValue |
The value to store in the associated -variable when the widget is deselected. Defaults to 0. | ||
-onvalue | onValue | OnValue |
The value to store in the associated -variable when the widget is selected. Defaults to 1. | ||
-variable | variable | Variable |
The name of a global variable whose value is linked to the widget. Defaults to the empty string. |
In addition to the standard cget, configure, instate, and state commands, checkbuttons support the following additional widget commands:
widget(n), keynav(n), radiobutton(n)