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