parameters: (self, extension)
return_statement: return absolute_path[0]
docstring: Pops up a file selection dialog with the filter set to the
          extension type
          :param extension: The file extension to use which defines the
                            export type
          :return absolute_path: The absolute path to save to
docstring_summary: Pops up a file selection dialog with the filter set to the
          extension type
          :param extension: The file extension to use which defines the
                            export type
          :return absolute_path: The absolute path to save to
docstring_tokens: Pops up a file selection dialog with the filter set to the extension type : param extension : The file extension to use which defines the export type : return absolute_path : The absolute path to save to
function: def get_file_name_for_saving(self, extension):
          """
          Pops up a file selection dialog with the filter set to the
          extension type
          :param extension: The file extension to use which defines the
                            export type
          :return absolute_path: The absolute path to save to
          """
          # Returns a tuple containing the filename and extension
          absolute_path = QFileDialog.getSaveFileName(caption='Select filename for exported plot',
                                                      filter='*{}'.format(extension))
          return absolute_path[0]
function_tokens: def get_file_name_for_saving ( self , extension ) : # Returns a tuple containing the filename and extension absolute_path = QFileDialog . getSaveFileName ( caption = 'Select filename for exported plot' , filter = '*{}' . format ( extension ) ) return absolute_path [ 0 ]