code: def saveSnapshot(self):
          '''
          Saves the current shanpshot to the specified file.
          Current snapshot is the image being displayed on the main window.
          '''
  
          filename = self.snapshotDir + os.sep + '${serialno}-${focusedwindowname}-${timestamp}' + '.' + self.snapshotFormat.lower()
          # We have the snapshot already taken, no need to retake
          d = FileDialog(self, self.device.substituteDeviceTemplate(filename))
          saveAsFilename = d.askSaveAsFilename()
          if saveAsFilename:
              _format = os.path.splitext(saveAsFilename)[1][1:].upper()
              self.printOperation(None, Operation.SNAPSHOT, filename, _format, self.deviceArt, self.dropShadow,
                                  self.screenGlare)
              # FIXME: we should add deviceArt, dropShadow and screenGlare to the saved image
              # self.unscaledScreenshot.save(saveAsFilename, _format, self.deviceArt, self.dropShadow, self.screenGlare)
              self.unscaledScreenshot.save(saveAsFilename, _formatf saveSnapshot(self):
          '''
          Saves the current shanpshot to the specified file.
          Current snapshot is the image being displayed on the main window.
          '''
  
          filename = self.snapshotDir + os.sep + '${serialno}-${focusedwindowname}-${timestamp}' + '.' + self.snapshotFormat.lower()
          # We have the snapshot already taken, no need to retake
          d = FileDialog(self, self.device.substituteDeviceTemplate(filename))
          saveAsFilename = d.askSaveAsFilename()
          if saveAsFilename:
              _format = os.path.splitext(saveAsFilename)[1][1:].upper()
              self.printOperation(None, Operation.SNAPSHOT, filename, _format, self.deviceArt, self.dropShadow,
                                  self.screenGlare)
              # FIXME: we should add deviceArt, dropShadow and screenGlare to the saved image
              # self.unscaledScreenshot.save(saveAsFilename, _format, self.deviceArt, self.dropShadow, self.screenGlare)
              self.unscaledScreenshot.save(saveAsFilename, _format)
docs: Saves the current shanpshot to the specified file.
          Current snapshot is the image being displayed on the main window.