def saveProjectAs(self): """ Save the current project to a file which will be selected by the user. """ Util.debug(2, "App.saveProjectAs", "Saving project as") fileName = str(QFileDialog.getSaveFileName(self.ui.workspace, "Save Project", self.projectDirectory(), "PySciPlot Project (*.psp);;All Files (*)")) Save.writeProjectToFile(self, fileName)
def saveProject(self): """ Save the current project to a file. If project has previously been saved, use that location. """ Util.debug(2, "App.saveProject", "Saving project") if self.currentProjectFile != "" and QFile.exists(self.currentProjectFile): Save.writeProjectToFile(self, self.currentProjectFile) else: self.saveProjectAs()