def CheckMadeList(self): if self.list is not None or self.destroying: return self.rootitem = root = self._MakeRoot() self.list = list = hierlist.HierListWithItems(root, win32ui.IDB_BROWSER_HIER) list.HierInit(self.GetParentFrame(), self) list.SetStyle(commctrl.TVS_HASLINES | commctrl.TVS_LINESATROOT | commctrl.TVS_HASBUTTONS)
def __init__(self, template): docview.Document.__init__(self, template) self.hierlist = hierlist.HierListWithItems(HLIFileDir("\\"), win32ui.IDB_HIERFOLDERS, win32ui.AFX_IDW_PANE_FIRST)