get_save_path

get_save_path(dialog_caption='', file_type='', file_filters=None, default_extension='', force_directory='', all_files=False)

Create a dialog to obtain a file name to save something.

Parameters
  • dialog_caption – title of the dialog.

  • file_type – The file type of save, to retrieve the initial directory.

  • file_filters – a FileFilter.

  • default_extension – default extension if none is given and the default file filter is selected.

  • force_directory – force the dialog to open on this directory

Returns

path to a save file name or null string if the user cancels the dialog.

When the user enters a name without an extension, the extension of the selected file filter is used. If the selected file filter is the default one (no extension), the default_extension parameter is used if not empty..