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

Method focus_set

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:781–787  ·  view source on GitHub ↗

Direct input focus to this widget. If the application currently does not have the focus this widget will get the focus if the application gets the focus through the window manager.

(self)

Source from the content-addressed store, hash-verified

779 raise ValueError("invalid literal for getboolean()")
780
781 def focus_set(self):
782 """Direct input focus to this widget.
783
784 If the application currently does not have the focus
785 this widget will get the focus if the application gets
786 the focus through the window manager."""
787 self.tk.call('focus', self._w)
788 focus = focus_set # XXX b/w compat?
789
790 def focus_force(self):

Callers 9

dnd_enterMethod · 0.45
dnd_leaveMethod · 0.45
goMethod · 0.45
__init__Method · 0.45
okMethod · 0.45
cancelMethod · 0.45
exampleFunction · 0.45
setcurrentMethod · 0.45
__init__Method · 0.45

Calls 1

callMethod · 0.80

Tested by

no test coverage detected