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. State must 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 ...

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.