Radio Buttons
Radio Buttons
Radio buttons are the last kind of buttons supported by Tk.
Radio buttons are arranged into groups and provide a way to choose one
of a set of options.
The way radio buttons work is as follows: all radio buttons in a group
are connected to the same Tcl variable. Each button specifies a value
that will be assigned to the Tcl variable when it is selected. When
one button in the group is clicked, any other button in that group
that was selected becomes deselected. Also, the value of the Tcl
variable is set to the value associated with the button just clicked.
The example below demonstrates this: