def METHOD_NAME(self):
    if not self._tmp:
        self.add_status("GCode file not created yet")
        return
    options = QFileDialog.Options()
    options |= QFileDialog.DontUseNativeDialog
    fileName, _ = QFileDialog.getSaveFileName(self,"Save to file","","All Files (*);;ngc Files (*.ngc)", options=options)
    if fileName:
        shutil.copy(self._tmp, fileName)
        self.add_status("GCode saved to {}".format(fileName))
    else:
        self.add_status("None or invalid filename specified")