getopenfilename

guerilla.getopenfilename(title, filter, defaultDirectory, category)

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