File management

pymodaq.daq_utils.gui_utils.select_file(start_path='C:\\Data', save=True, ext=None, filter=None)[source]

Save or open a file with Qt5 file dialog, to be used within an Qt5 loop.


from pymodaq.daq_utils.daq_utils import select_file
Parameters Type Description
start_path Path object or str or None, optional the path Qt5 will open in te dialog
save bool, optional
  • if True, a savefile dialog will open in order to set a savefilename
  • if False, a openfile dialog will open in order to open an existing file
ext str, optional the extension of the file to be saved or opened
Returns:the Path object pointing to the file
Return type:Path object