getsavefilename

guerilla.getsavefilename(title, filter, defaultDirectory, extension, category, currentfile=None)

Open a file selector for writing, returns the path to the selected file or nil if none

Parameters:
  • title (str) – the title of the file selector
  • filter (str) – the file filter
  • defaultDirectory (str) – the default directory if no category can be matched
  • extension (str) – the default file extension
  • category (str) – the category of file to select
  • currentfile (str) – the initial location of the file to save, to open the file dialog at this location