def test_init(self): # Start with code slightly adapted from htest. sc = tree.ScrolledCanvas( self.root, bg="white", highlightthickness=0, takefocus=1) sc.frame.pack(expand=1, fill="both", side='left') item = tree.FileTreeItem(tree.ICONDIR) node = tree.TreeNode(sc.canvas, None, item) node.expand()
def test_init(self): sc = tree.ScrolledCanvas(self.root, bg='white', highlightthickness=0, takefocus=1) sc.frame.pack(expand=1, fill='both', side='left') item = tree.FileTreeItem(tree.ICONDIR) node = tree.TreeNode(sc.canvas, None, item) node.expand()