sidpy.io.interface_utils.savefile_dialog

sidpy.io.interface_utils.savefile_dialog(initial_file='*.hf5', file_path='.', file_types=None, caption='Save file as ...')

Produces a window / dialog to allow users to specify the location and name of a file to save to.

Parameters:
  • initial_file (str, optional. Default = *.hf5) – File extension? @gduscher to clarify

  • file_path (str, optional. Default = '.') – path to starting or root directory

  • file_types (str, optional. Default = None) – Filters for kinds of files to display in the window

  • caption (str, optional. Default = "Save file as...") – caption of the save file dialog

Returns:

fname – path to desired file

Return type:

str

Notes

In jupyter notebooks use %gui Qt early in the notebook.