# This demonstration script creates a toplevel window containing
4
# several radiobutton widgets.
5
#
6
# SCCS: @(#) radio.tcl 1.5 97/03/02 16:26:57
7
8
if{![info exists widgetDemo]}{
9
error"This script should be run from the \"widget\" demo."
10
}
11
12
set w .radio
13
catch{destroy $w}
14
toplevel $w
15
wm title $w"Radiobutton Demonstration"
16
wm iconname $w"radio"
17
positionWindow $w
18
label $w.msg -font $font -wraplength 5i -justify left -text "Two groups of radiobuttons are displayed below. If you click on a button then the button will become selected exclusively among all the buttons in its group. A Tcl variable is associated with each group to indicate which of the group's buttons is selected. Click the \"See Variables\" button to see the current values of the variables."