2 '\" Copyright (c) 2004 Joe English
4 '\" See the file "license.terms" for information on usage and redistribution
5 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7 .TH ttk::radiobutton n 8.5 Tk "Tk Themed Widget"
11 ttk::radiobutton \- Mutually exclusive option widget
13 \fBttk::radiobutton\fR \fIpathName \fR?\fIoptions\fR?
17 \fBttk::radiobutton\fR widgets are used in groups to show or change
18 a set of mutually-exclusive options.
19 Radiobuttons are linked to a Tcl variable,
20 and have an associated value; when a radiobutton is clicked,
21 it sets the variable to its associated value.
23 \-class \-compound \-cursor
24 \-image \-state \-style
25 \-takefocus \-text \-textvariable
28 .SH "WIDGET-SPECIFIC OPTIONS"
29 .OP \-command command Command
30 A Tcl script to evaluate whenever the widget is invoked.
31 .OP \-value Value Value
32 The value to store in the associated \fB\-variable\fR
33 when the widget is selected.
34 .OP \-variable variable Variable
35 The name of a global variable whose value is linked to the widget.
36 Default value is \fB::selectedButton\fR.
39 In addition to the standard
40 \fBcget\fR, \fBconfigure\fR, \fBidentify\fR, \fBinstate\fR, and \fBstate\fR
41 commands, radiobuttons support the following additional
44 \fIpathname\fB invoke\fR
45 Sets the \fB\-variable\fR to the \fB\-value\fR, selects the widget,
46 and evaluates the associated \fB\-command\fR.
47 Returns the result of the \fB\-command\fR, or the empty
48 string if no \fB\-command\fR is specified.
49 .\" Missing: select, deselect. Useful?
50 .\" Missing: flash. This is definitely not useful.
53 The widget does not respond to user input if the \fBdisabled\fR state is set.
54 The widget sets the \fBselected\fR state whenever
55 the linked \fB\-variable\fR is set to the widget's \fB\-value\fR,
56 and clears it otherwise.
57 The widget sets the \fBalternate\fR state whenever the
58 linked \fB\-variable\fR is unset.
59 (The \fBalternate\fR state may be used to indicate a
66 \fBTtk::radiobutton\fR widgets support the \fBToolbutton\fR style in all
67 standard themes, which is useful for creating widgets for toolbars.
70 The class name for a \fBttk::radiobutton\fP is \fBTRadiobutton\fP.
72 Dynamic states: \fBactive\fP, \fBalternate\fP, \fBdisabled\fP,
73 \fBpressed\fP, \fBreadonly\fP, \fBselected\fP.
75 \fBTRadiobutton\fP styling options configurable with \fBttk::style\fP
78 \fB\-background\fP \fIcolor\fP
80 \fB\-compound\fP \fIcompound\fP
82 \fB\-foreground\fP \fIcolor\fP
84 \fB\-indicatorbackground\fP \fIcolor\fP
86 \fB\-indicatorcolor\fP \fIcolor\fP
88 \fB\-indicatormargin\fP \fIpadding\fP
90 \fB\-indicatorrelief\fP \fIrelief\fP
92 \fB\-padding\fP \fIpadding\fP
94 Some options are only available for specific themes.
96 See the \fBttk::style\fP manual page for information on how to configure
99 ttk::widget(n), ttk::checkbutton(n), radiobutton(n)
101 widget, button, option