def onOpenFolder(self): path = self.frame.doDirDialog() if path != None: files = util.dir2tree(path) root = self.tree.addItem(None, 'root') self.tree.setTree(root, files) pass
def onClickTree(self): a = util.dir2tree('D:\\test') a.show() self.tree.setTree(self.tree.root, a, True)