ImageFile.get_filedialog

ImageFile.get_filedialog(**opts)

Wrap around Tk file dialog to mange creating file dialogs in a cross platform way.

Parameters
  • what (str) – What sort of a dialog to create - options are ‘file’,’directory’,’save’,’files’

  • **opts (dict) – Arguments to pass through to the underlying dialog function.

Returns

A file name or directory or list of files.