Name
radiobutton
- radiobutton
pathName [option value...] The radiobutton command creates a new radiobutton widget named
pathName.
Standard Options
-activebackground | -activeforeground | -anchor |
-background | -bitmap | -borderwidth |
-cursor | -disabledforeground | -font |
-foreground | -highlightbackground | -highlightcolor |
-highlightthickness | -image | -justify |
-padx | -pady | -relief |
-takefocus | -text | -textvariable |
-underline | -wraplength |
Widget-Specific Options
- -command
tclCommand(command,Command) Command to be evaluated when button is invoked.
- -height
height(height,Height) Desired height, in lines for text content or in screen units for images and bitmaps.
- -indicatoron
Boolean(indicatorOn,IndicatorOn) Whether the indicator should be drawn. If
false, the -relief option is ignored and the widget's relief is sunken if selected and raised if not.- -selectcolor
color(selectColor,Background) Background color to use for indicator when button is selected (at all times for Windows). If indicatorOn is false, the color is used for the Background of the entire widget when it is selected.
- -selectimage
imageName(selectImage,SelectImage) Name of image to display instead of normal image when button is selected. This option is ignored if the -image option has not been set.
- -state
state(state,State) State of the radiobutton.
Statemust be normal, active, or disabled.- -value
value(value,Value) Value to store in associated variable when button is selected.
- -variable
varName(variable,Variable) Name of global variable (defaults to last element of
pathName ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access