Construct the widget.
Construct the widget.
Get the value of the selected state.
Select the radio button and execute the command if bound.
Set the value of the selected state.
Mixin common commands.
Add a command to a widget.
Remove a previously set command.
Invoke the command associated with the widget.
Set the widget text.
Get the widget text.
Set the image for this widget.
Change the position of the image in relation to the text.
Set the text character width.
Destroy this widget.
Mixin common commands.
// The radio button group parent. auto frame = new Frame() .pack(); auto option1 = new RadioButton(frame, "Foo") .setSelectedValue("foo") .select() .pack(); auto option2 = new RadioButton(frame, "Bar") .setSelectedValue("bar") .pack();
These are injected common commands that can also be used with this widget.
Additional events that can also be bound to using the bind method.
<<Invoke>>, <<PrevWindow>>, <Alt-Key>, <B1-Enter>, <B1-Leave>, <Button-1>, <ButtonRelease-1>, <Enter>, <Key-Down>, <Key-F10>, <Key-Tab>, <Key-Up>, <Key-space>, <Leave>,
States: This widget does not respond to user input if the disabled state is set. The widget sets the selected state whenever the value to set to the selected value, and clears it otherwise. This widget sets the alternate state whenever value is unset. (The alternate state may be used to indicate a "tri-state" or "indeterminate" selection.)
Styles: Radio button widgets support the Toolbutton style in all standard themes, which is useful for creating widgets for toolbars.
Radio button widgets are used in groups to show or change a set of mutually-exclusive options. Radio buttons have an associated selected value; when a radio button is selected, it sets the associated value.
To create a group of radio button that work properly in unison, all radio button widgets within the group must share the same immediate parent (usually a frame) and all must have individual selected values set.