MCPcopy Index your code
hub / github.com/RustPython/RustPython / nametowidget

Method nametowidget

Lib/tkinter/__init__.py:1664–1679  ·  view source on GitHub ↗

Return the Tkinter instance of a widget identified by its Tcl name NAME.

(self, name)

Source from the content-addressed store, hash-verified

1662 return res
1663
1664 def nametowidget(self, name):
1665 """Return the Tkinter instance of a widget identified by
1666 its Tcl name NAME."""
1667 name = str(name).split('.')
1668 w = self
1669
1670 if not name[0]:
1671 w = w._root()
1672 name = name[1:]
1673
1674 for n in name:
1675 if not n:
1676 break
1677 w = w.children[n]
1678
1679 return w
1680
1681 _nametowidget = nametowidget
1682

Callers 4

pack_infoMethod · 0.80
place_infoMethod · 0.80
grid_infoMethod · 0.80
__getitem__Method · 0.80

Calls 3

strFunction · 0.85
_rootMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected