getopenfilename

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

Open a file selector for reading, 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
  • category (str) – the category of file to select
  • currentfile (str) – the initial location of the file to load, to open the file dialog at this location