Ttk Radiobutton widgets are used in groups to show or change a set of mutually-exclusive options.
| 1004 | |
| 1005 | |
| 1006 | class Radiobutton(Widget): |
| 1007 | """Ttk Radiobutton widgets are used in groups to show or change a |
| 1008 | set of mutually-exclusive options.""" |
| 1009 | |
| 1010 | def __init__(self, master=None, **kw): |
| 1011 | """Construct a Ttk Radiobutton with parent master. |
| 1012 | |
| 1013 | STANDARD OPTIONS |
| 1014 | |
| 1015 | class, compound, cursor, image, state, style, takefocus, |
| 1016 | text, textvariable, underline, width |
| 1017 | |
| 1018 | WIDGET-SPECIFIC OPTIONS |
| 1019 | |
| 1020 | command, value, variable |
| 1021 | """ |
| 1022 | Widget.__init__(self, master, "ttk::radiobutton", kw) |
| 1023 | |
| 1024 | |
| 1025 | def invoke(self): |
| 1026 | """Sets the option variable to the option value, selects the |
| 1027 | widget, and invokes the associated command. |
| 1028 | |
| 1029 | Returns the result of the command, or an empty string if |
| 1030 | no command is specified.""" |
| 1031 | return self.tk.call(self._w, "invoke") |
| 1032 | |
| 1033 | |
| 1034 | class Scale(Widget, tkinter.Scale): |
no outgoing calls
no test coverage detected