コード例 #1
0
 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()
コード例 #2
0
 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()