def showSaveDialog(self, title, MyFormats):
"""
This function is called by the menu "Export/Export Shapes" of the main toolbar.
It creates the selection dialog for the exporter
@return: Returns the filename of the selected file.
"""
(beg, ende) = os.path.split(self.filename)
(fileBaseName, fileExtension) = os.path.splitext(ende)
default_name = os.path.join(g.config.vars.Paths['output_dir'], fileBaseName)
selected_filter = self.MyPostProcessor.output_format[0]
filename = getSaveFileName(self,
title, default_name,
MyFormats, selected_filter)
logger.info(self.tr("File: %s selected") % filename[0])
logger.info("<a href='%s'>%s</a>" %(filename[0],filename[0]))
return filename
评论列表
文章目录