def onToolbarLoadProject(self): project_name = self.toolbar.getProject() if project_name: PillarsUtils.loadProject(project_name) self.loadFromGoto() self.statusBar.setMessage("Load Project Successful") else: QtGui.QMessageBox.about(self, "Wrong", "Please enter Project name")
def onToolbarLoadProject(self): project_name = self.toolbar.getProject() if project_name: self.project = PillarsCore.Project(project_name) self.project.location = PillarsUtils.PillarsProjectDir self.project.writeJson(PillarsUtils.GotoProject) PillarsUtils.loadProject(project_name) self.loadFromGoto() self.statusBar.setMessage("Load Project Successful") else: QtGui.QMessageBox.about(self, "Wrong", "Please enter Project name")