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

Method nametowidget

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

1567 return res
1568
1569 def nametowidget(self, name):
1570 """Return the Tkinter instance of a widget identified by
1571 its Tcl name NAME."""
1572 name = str(name).split('.')
1573 w = self
1574
1575 if not name[0]:
1576 w = w._root()
1577 name = name[1:]
1578
1579 for n in name:
1580 if not n:
1581 break
1582 w = w.children[n]
1583
1584 return w
1585
1586 _nametowidget = nametowidget
1587

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