radiobutton deselect
Deselects the radiobutton when it is selected.
PATHNAME deselect
Description
When the variable has the -value of the radiobutton, sets the variable to an empty string. When another radiobutton of the group is selected, the variable keeps its value. It runs no -command.
Returns
An empty string.
Examples
% radiobutton .ds -variable ds -value a
> .ds select
> .ds deselect
> set ds
# The selected radiobutton is .dsb, so the value stays.
% radiobutton .dsa -variable dg -value a
> radiobutton .dsb -variable dg -value b
> .dsb select
> .dsa deselect
> set dg
b
Errors
% radiobutton .ds2; .ds2 deselect x
wrong # args: should be ".ds2 deselect"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1