MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _tree_widget

Function _tree_widget

tools/python-3.11.9-amd64/Lib/idlelib/tree.py:487–495  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected