MCPcopy Index your code
hub / github.com/python/cpython / winfo_children

Method winfo_children

Lib/tkinter/__init__.py:1215–1226  ·  view source on GitHub ↗

Return a list of all widgets which are children of this widget.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 3

tearDownMethod · 0.80
stackorderMethod · 0.80

Calls 3

splitlistMethod · 0.80
callMethod · 0.45
appendMethod · 0.45

Tested by 2

stackorderMethod · 0.64