1radiobutton(n) Tile Widget Set radiobutton(n)
2
3
4
6 ttk::radiobutton - Mutually exclusive option widget
7
9 ttk::radiobutton pathName ?options?
10
12 radiobutton widgets are used in groups to show or change a set of mutu‐
13 ally-exclusive options. Radiobuttons are linked to a Tcl variable, and
14 have an associated value; when a radiobutton is clicked, it sets the
15 variable to its associated value. -class -compound -cursor -image
16 -state -style -takefocus -text -textvariable -under‐
17 line -width
18
20 [-command command] A Tcl script to evaluate whenever the widget is
21 invoked. [-value Value] The value to store in the associated -variable
22 when the widget is selected. [-variable variable] The name of a global
23 variable whose value is linked to the widget. Default value is
24 ::selectedButton.
25
27 In addition to the standard cget, configure, instate, and state com‐
28 mands, radiobuttons support the following additional widget commands:
29
30 pathname invoke
31 Sets the -variable to the -value, selects the widget, and evalu‐
32 ates the associated -command. Returns the result of the -com‐
33 mand, or the empty string if no -command is specified.
34
36 The widget does not respond to user input if the disabled state is set.
37 The widget sets the selected state whenever the linked -variable is set
38 to the widget's -value, and clears it otherwise. The widget sets the
39 alternate state whenever the linked -variable is unset. (The alternate
40 state may be used to indicate a ``tri-state'' or ``indeterminate''
41 selection.)
42
44 widget(n), keynav(n), checkbutton(n)
45
47 widget, button, option
48
49
50
51tile 0.2 radiobutton(n)