Check Buttons
Check Buttons
Check buttons allow the user to choose one of two values in an
application. One of the values is signaled as on for the check
button, and the other is off.
Each check button is connected to a global Tcl variable that receives
its value; clicking the button on or off modifies the Tcl variable,
and setting the variable in the underlying application modifies the
appearance of the button.
The first example is very simple. It just shows the current value of
the Tcl variable associated with a check button in a label: