def saveScreenshot(self):
format = 'png'
initialPath = QDir.currentPath() + "/untitled." + format # 'C:/Users/mcold/Dropbox/Python projects/PyQt_examples/desktop/untitled.png'
fileName, _ = QFileDialog.getSaveFileName(self, "Save As", initialPath,
"%s Files (*.%s);;All Files (*)" % (format.upper(), format))
if fileName:
self.originalPixmap.save(fileName, format)