MCPcopy Create free account
hub / github.com/ActiveState/code / tk_print

Function tk_print

recipes/Python/580738_Tkinter_selectors/recipe-580738.py:322–327  ·  view source on GitHub ↗

Print a tree of widget names and/or classes

(root, name=True, class_= True, indent="\t")

Source from the content-addressed store, hash-verified

320 config_all_extended(root, selector, True, kwargs)
321
322def tk_print(root, name=True, class_= True, indent="\t"):
323 """Print a tree of widget names and/or classes"""
324 print(root)
325
326 if name or class_:
327 _print_widget_tree_from(root, name, class_, 1, indent)
328
329def _print_widget_tree_from(root, print_names, print_classes, level, indent):
330 for child_name, child in root.children.items():

Callers 1

recipe-580738.pyFile · 0.85

Calls 2

printFunction · 0.85
_print_widget_tree_fromFunction · 0.85

Tested by

no test coverage detected