MCPcopy Index your code
hub / github.com/python/cpython / invoke

Method invoke

Lib/tkinter/ttk.py:615–623  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
626class Entry(Widget, tkinter.Entry):

Callers 1

test_invokeMethod · 0.95

Calls 1

callMethod · 0.45

Tested by 1

test_invokeMethod · 0.76