Return a list of all widgets which are children of this widget.
(self)
| 1213 | self.tk.call('winfo', 'cells', self._w)) |
| 1214 | |
| 1215 | def winfo_children(self): |
| 1216 | """Return a list of all widgets which are children of this widget.""" |
| 1217 | result = [] |
| 1218 | for child in self.tk.splitlist( |
| 1219 | self.tk.call('winfo', 'children', self._w)): |
| 1220 | try: |
| 1221 | # Tcl sometimes returns extra windows, e.g. for |
| 1222 | # menus; those need to be skipped |
| 1223 | result.append(self._nametowidget(child)) |
| 1224 | except KeyError: |
| 1225 | pass |
| 1226 | return result |
| 1227 | |
| 1228 | def winfo_class(self): |
| 1229 | """Return window class name of this widget.""" |