utils_11.py 292 B

1234567
  1. def run(self):
  2. file = QtCore.QFile(self.filePath)
  3. if not file.open(QtCore.QIODevice.WriteOnly):
  4. self.saveFileFinished.emit(SAVE_FILE_ERROR, self.urlStr, self.filePath)
  5. file.write(self.fileData)
  6. file.close()
  7. self.saveFileFinished.emit(0, self.urlStr, self.filePath)