Next: Radiobutton widgets Up: XF and Tcl/Tk Previous: Scale widgets

## Checkbutton widgets

To set and retrieve the current state of a checkbutton, these widgets have a resource named (-variable). This variable represents the current state of a checkbutton. It is set to 0 or 1 by default, depending on the current state of the button. It is possible to specify for each button which value is assigned to the variable when each button is pressed. This is done with the resources -onvalue and -offvalue).