def inquireSaveFilename(self):
    '\n        Prompt the user for the name of the file into which to save the scene.\n        The file format will be determined from the filename extension.\n        '
    formattypes = [('png', 'PNG - Portable Networks Graphics (*.png)'), ('jpeg', 'JPEG - Joint Photographic Experts Group (*.jpeg *.jpg *.jpe)'), ('tiff', 'TIFF - Tagged Image File Format (*.tiff *.tif)'), ('bmp', 'BMP - Windows Bitmap (*.bmp)'), ('ppm', 'PPM - Portable Pixmap (*.ppm)'), ('xpm', 'XPM - X11 Pixmap (*.xpm)'), ('xbm', 'XBM - X11 Bitmap (*.xbm)')]
    filters = ';;'.join([t[1] for t in formattypes])
    if (QT_VERSION == 5):
        (fileName, fileFilter) = QFileDialog.getSaveFileName(self, self.tr('Save the current image as '), self.tr(self.__lastfilename), self.tr(filters))
    else:
        (fileName, fileFilter) = QFileDialog.getSaveFileNameAndFilter(self, self.tr('Save the current image as '), self.tr(self.__lastfilename), self.tr(filters))
    if fileName:
        for (fmt, fmtQName) in formattypes:
            if (self.tr(fmtQName) == fileFilter):
                fileFormat = fmt
                break
        else:
            raise RuntimeError(("Unexpected file format name '%s'" % fileFilter))
        self.saveSceneToFile(fileName, fileFormat, None, None)
        self.__lastfilename = fileName
        self.__lastformat = fileFormat
Prompt the user for the name of the file into which to save the scene.
The file format will be determined from the filename extension.
def inquireSaveFilename(self):
    '\n        Prompt the user for the name of the file into which to save the scene.\n        The file format will be determined from the filename extension.\n        '
    formattypes = [('png', 'PNG - Portable Networks Graphics (*.png)'), ('jpeg', 'JPEG - Joint Photographic Experts Group (*.jpeg *.jpg *.jpe)'), ('tiff', 'TIFF - Tagged Image File Format (*.tiff *.tif)'), ('bmp', 'BMP - Windows Bitmap (*.bmp)'), ('ppm', 'PPM - Portable Pixmap (*.ppm)'), ('xpm', 'XPM - X11 Pixmap (*.xpm)'), ('xbm', 'XBM - X11 Bitmap (*.xbm)')]
    filters = ';;'.join([t[1] for t in formattypes])
    if (QT_VERSION == 5):
        (fileName, fileFilter) = QFileDialog.getSaveFileName(self, self.tr('Save the current image as '), self.tr(self.__lastfilename), self.tr(filters))
    else:
        (fileName, fileFilter) = QFileDialog.getSaveFileNameAndFilter(self, self.tr('Save the current image as '), self.tr(self.__lastfilename), self.tr(filters))
    if fileName:
        for (fmt, fmtQName) in formattypes:
            if (self.tr(fmtQName) == fileFilter):
                fileFormat = fmt
                break
        else:
            raise RuntimeError(("Unexpected file format name '%s'" % fileFilter))
        self.saveSceneToFile(fileName, fileFormat, None, None)
        self.__lastfilename = fileName
        self.__lastformat = fileFormat