Toggles between the selected and deselected states and invokes the associated command. If the widget is currently selected, sets the option variable to the offvalue option and deselects the widget; otherwise, sets the option variable to the option onvalue. Re
(self)
| 613 | |
| 614 | |
| 615 | def invoke(self): |
| 616 | """Toggles between the selected and deselected states and |
| 617 | invokes the associated command. If the widget is currently |
| 618 | selected, sets the option variable to the offvalue option |
| 619 | and deselects the widget; otherwise, sets the option variable |
| 620 | to the option onvalue. |
| 621 | |
| 622 | Returns the result of the associated command.""" |
| 623 | return self.tk.call(self._w, "invoke") |
| 624 | |
| 625 | |
| 626 | class Entry(Widget, tkinter.Entry): |