Return the Tkinter instance of a widget identified by its Tcl name NAME.
(self, name)
| 1680 | return res |
| 1681 | |
| 1682 | def nametowidget(self, name): |
| 1683 | """Return the Tkinter instance of a widget identified by |
| 1684 | its Tcl name NAME.""" |
| 1685 | name = str(name).split('.') |
| 1686 | w = self |
| 1687 | |
| 1688 | if not name[0]: |
| 1689 | w = w._root() |
| 1690 | name = name[1:] |
| 1691 | |
| 1692 | for n in name: |
| 1693 | if not n: |
| 1694 | break |
| 1695 | w = w.children[n] |
| 1696 | |
| 1697 | return w |
| 1698 | |
| 1699 | _nametowidget = nametowidget |
| 1700 |
no test coverage detected