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