Return a list of all widgets which are children of this widget.
(self)
| 1195 | self.tk.call('winfo', 'cells', self._w)) |
| 1196 | |
| 1197 | def winfo_children(self): |
| 1198 | """Return a list of all widgets which are children of this widget.""" |
| 1199 | result = [] |
| 1200 | for child in self.tk.splitlist( |
| 1201 | self.tk.call('winfo', 'children', self._w)): |
| 1202 | try: |
| 1203 | # Tcl sometimes returns extra windows, e.g. for |
| 1204 | # menus; those need to be skipped |
| 1205 | result.append(self._nametowidget(child)) |
| 1206 | except KeyError: |
| 1207 | pass |
| 1208 | return result |
| 1209 | |
| 1210 | def winfo_class(self): |
| 1211 | """Return window class name of this widget.""" |