PyDocs

Nav

Graphical user interfaces with Tk

Radiobutton

tkinter

class
  • Radiobutton(master=None, cnf={}, **kw)
A Radiobutton widget displays a textual string, bitmap or image together with a diamond or circular indicator, and selects one choice out of several. It has all the behavior of a simple button and, in addition, can be selected: typically several radiobuttons share a single variable, and selecting one sets that variable to the radiobutton’s value; each radiobutton also monitors the variable and automatically selects or deselects itself when the variable changes. Inherits from Widget. In addition to the standard widget options, a radiobutton accepts the options documented in the Tk radiobutton manual page, such as variable, value and command.
Members of Radiobutton

d

deselect
Deselect the radiobutton and set the associated variable to an empty string.

f

flash
Flash the radiobutton by redisplaying it several times, alternating between the active and normal colors.

i

invoke
Do just what would happen if the user pressed the radiobutton with the mouse: select the button and invoke the associated command, if there is one.

s

select
Select the radiobutton and set the associated variable to the value corresponding to this widget.
0 Examples
No examples for tkinter/Radiobutton.
See Also
No see-alsos for tkinter/Radiobutton
0 Notes
No notes for Radiobutton