(parent)
| 485 | |
| 486 | |
| 487 | def _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 | |
| 498 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected