utils_12.py 204 B

1234567
  1. def saveFile(self, fileName, data):
  2. file = QtCore.QFile(fileName)
  3. if not file.open(QtCore.QIODevice.WriteOnly):
  4. return False
  5. file.write(data.readAll())
  6. file.close()
  7. return True