1ttk::radiobutton(n) Tk Themed Widget ttk::radiobutton(n)
2
3
4
5______________________________________________________________________________
6
8 ttk::radiobutton - Mutually exclusive option widget
9
11 ttk::radiobutton pathName ?options?
12_________________________________________________________________
13
15 ttk::radiobutton widgets are used in groups to show or change a set of
16 mutually-exclusive options. Radiobuttons are linked to a Tcl variable,
17 and have an associated value; when a radiobutton is clicked, it sets
18 the variable to its associated value.
19
21 -class -compound -cursor
22 -image -state -style
23 -takefocus -text -textvariable
24 -underline -width
25
26 See the ttk_widget manual entry for details on the standard options.
27
29 [-command command] A Tcl script to evaluate whenever the widget is
30 invoked. [-value Value] The value to store in the associated -variable
31 when the widget is selected. [-variable variable] The name of a global
32 variable whose value is linked to the widget. Default value is
33 ::selectedButton.
34
36 In addition to the standard cget, configure, identify, instate, and
37 state commands, radiobuttons support the following additional widget
38 commands:
39
40 pathname invoke
41 Sets the -variable to the -value, selects the widget, and evalu‐
42 ates the associated -command. Returns the result of the -com‐
43 mand, or the empty string if no -command is specified.
44
46 The widget does not respond to user input if the disabled state is set.
47 The widget sets the selected state whenever the linked -variable is set
48 to the widget's -value, and clears it otherwise. The widget sets the
49 alternate state whenever the linked -variable is unset. (The alternate
50 state may be used to indicate a “tri-state” or “indeterminate” selec‐
51 tion.)
52
54 ttk::widget(n), ttk::checkbutton(n), radiobutton(n)
55
57 widget, button, option
58
59
60
61Tk 8.5 ttk::radiobutton(n)