4.23. Turning a Checkbutton/Radiobutton On and Off
The deselect method will always set the indicator to the off state and the variable assigned by -variable to the value in -offvalue. On a Radiobutton, using deselect causes the Radiobutton to be unselected. It sets the $variable to an empty string. If you use this method, make sure you account for it in any code that evaluates the value of $variable.
$cb->deselect( ); $rb->deselect( );
$cb->select( ); $rb->select( );
Both methods are ignored if -state is 'disabled'.
$cb->toggle( ); $rb->toggle( );
Calling toggle does not cause the subroutine associated with the -command value to be called.
Copyright © 2002 O'Reilly & Associates. All rights reserved.