Esempio n. 1
0
 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")
Esempio n. 2
0
 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")