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

Method focus_force

Lib/tkinter/__init__.py:809–813  ·  view source on GitHub ↗

Direct input focus to this widget even if the application does not have the focus. Use with caution!

(self)

Source from the content-addressed store, hash-verified

807 focus = focus_set # XXX b/w compat?
808
809 def focus_force(self):
810 """Direct input focus to this widget even if the
811 application does not have the focus. Use with
812 caution!"""
813 self.tk.call('focus', '-force', self._w)
814
815 def focus_get(self):
816 """Return the widget which has currently the focus in the

Callers 15

test_focusMethod · 0.45
test_unbind2Method · 0.45
test_traversalMethod · 0.45
beginMethod · 0.45
test_fontlist_keyMethod · 0.45
test_fontlist_mouseMethod · 0.45

Calls 1

callMethod · 0.45