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

Method focus

Lib/tkinter/ttk.py:1249–1252  ·  view source on GitHub ↗

If item is specified, sets the focus item to item. Otherwise, returns the current focus item, or '' if there is none.

(self, item=None)

Source from the content-addressed store, hash-verified

1247
1248
1249 def focus(self, item=None):
1250 """If item is specified, sets the focus item to item. Otherwise,
1251 returns the current focus item, or '' if there is none."""
1252 return self.tk.call(self._w, "focus", item)
1253
1254
1255 def heading(self, column, option=None, **kw):

Callers 1

test_focusMethod · 0.45

Calls 1

callMethod · 0.45

Tested by 1

test_focusMethod · 0.36