def zipdb(self): filename = gui.QFileDialog.getSaveFileName(self, _("Save database (keep '.zip' extension)"), "./ecu.zip", "*.zip") filename = str(filename.toAscii()) if not filename.endswith(".zip"): filename += ".zip" if not isWritable(str(os.path.dirname(filename))): mbox = gui.QMessageBox() mbox.setText("Cannot write to directory " + os.path.dirname(filename)) mbox.exec_() return self.logview.append("Zipping XML database... (this can take a few minutes)") core.QCoreApplication.processEvents() parameters.zipConvertXML(filename) self.logview.append("Zip job finished")
def zipdb(self): self.logview.append("Zipping XML database... (this can take a few minutes)") core.QCoreApplication.processEvents() parameters.zipConvertXML()