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

Function _tree_widget

Lib/idlelib/tree.py:493–501  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

491
492
493def _tree_widget(parent): # htest #
494 top = Toplevel(parent)
495 x, y = map(int, parent.geometry().split('+')[1:])
496 top.geometry("+%d+%d" % (x+50, y+175))
497 sc = ScrolledCanvas(top, bg="white", highlightthickness=0, takefocus=1)
498 sc.frame.pack(expand=1, fill="both", side=LEFT)
499 item = FileTreeItem(ICONDIR)
500 node = TreeNode(sc.canvas, None, item)
501 node.expand()
502
503
504if __name__ == '__main__':

Callers

nothing calls this directly

Calls 7

expandMethod · 0.95
ToplevelClass · 0.85
FileTreeItemClass · 0.85
ScrolledCanvasClass · 0.70
TreeNodeClass · 0.70
splitMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…