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

Method focus_set

Lib/tkinter/__init__.py:800–806  ·  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

798 raise ValueError("invalid literal for getboolean()")
799
800 def focus_set(self):
801 """Direct input focus to this widget.
802
803 If the application currently does not have the focus
804 this widget will get the focus if the application gets
805 the focus through the window manager."""
806 self.tk.call('focus', self._w)
807 focus = focus_set # XXX b/w compat?
808
809 def focus_force(self):

Callers 7

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

Calls 1

callMethod · 0.45

Tested by

no test coverage detected