MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / focus_force

Method focus_force

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:790–794  ·  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

788 focus = focus_set # XXX b/w compat?
789
790 def focus_force(self):
791 """Direct input focus to this widget even if the
792 application does not have the focus. Use with
793 caution!"""
794 self.tk.call('focus', '-force', self._w)
795
796 def focus_get(self):
797 """Return the widget which has currently the focus in the

Callers 10

test_unbind2Method · 0.45
test_traversalMethod · 0.45
beginMethod · 0.45
test_fontlist_keyMethod · 0.45
test_fontlist_mouseMethod · 0.45
test_source_selectedMethod · 0.45

Calls 1

callMethod · 0.80