Return the Tkinter instance of a widget identified by its Tcl name NAME.
(self, name)
| 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 |
no test coverage detected