def updateTreeText(self): """ Update the tree text for this document """ self._tree.SetItemText(self._treeRoot, PyutUtils.getJustTheFileName(self._filename)) for document in self._documents: document.updateTreeText()
def addToTree(self): """ Add the project to the project tree """ justTheFileName: str = PyutUtils.getJustTheFileName(self._filename) self._treeRoot = self._tree.AppendItem(self._treeRootParent, justTheFileName, data=self) self._tree.Expand(self._treeRoot) # Add the frames for document in self._documents: document.addToTree(self._tree, self._treeRoot)