1ttk::radiobutton(n)            Tk Themed Widget            ttk::radiobutton(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       ttk::radiobutton - Mutually exclusive option widget
9

SYNOPSIS

11       ttk::radiobutton pathName ?options?
12______________________________________________________________________________
13

DESCRIPTION

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

STANDARD OPTIONS

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

WIDGET-SPECIFIC OPTIONS

29       Command-Line Name:-command
30       Database Name:  command
31       Database Class: Command
32
33              A Tcl script to evaluate whenever the widget is invoked.
34
35       Command-Line Name:-value
36       Database Name:  Value
37       Database Class: Value
38
39              The value to store in the associated -variable when  the  widget
40              is selected.
41
42       Command-Line Name:-variable
43       Database Name:  variable
44       Database Class: Variable
45
46              The  name of a global variable whose value is linked to the wid‐
47              get.  Default value is ::selectedButton.
48

WIDGET COMMAND

50       In addition to the standard cget,  configure,  identify,  instate,  and
51       state  commands,  radiobuttons  support the following additional widget
52       commands:
53
54       pathname invoke
55              Sets the -variable to the -value, selects the widget, and evalu‐
56              ates  the  associated -command.  Returns the result of the -com‐
57              mand, or the empty string if no -command is specified.
58

WIDGET STATES

60       The widget does not respond to user input if the disabled state is set.
61       The widget sets the selected state whenever the linked -variable is set
62       to the widget's -value, and clears it otherwise.  The widget  sets  the
63       alternate state whenever the linked -variable is unset.  (The alternate
64       state may be used to indicate a “tri-state” or  “indeterminate”  selec‐
65       tion.)
66

STANDARD STYLES

68       Ttk::radiobutton  widgets  support the Toolbutton style in all standard
69       themes, which is useful for creating widgets for toolbars.
70

SEE ALSO

72       ttk::widget(n), ttk::checkbutton(n), radiobutton(n)
73

KEYWORDS

75       widget, button, option
76
77
78
79Tk                                    8.5                  ttk::radiobutton(n)
Impressum