saveDialog¶
- emlib.dialogs.saveDialog(filter='All (*.*)', title='Save file', directory='~', backend=None)[source]¶
Open a dialog to save a file.
Note
At the moment macos only supports the ‘qt’ backend
- Parameters:
filter – a string of the form “<Mask> (<glob>)”. Multiple filters can be used, for example:
"Image (*.png, *.jpg);; Video (*.mp4, *.mov)"
title – the title of the dialog
directory (
str
) – the initial directorybackend (
Optional
[str
]) – one of ‘qt’, ‘tkinter’ or None to select the backend based on available packages
- Return type:
str
- Returns:
the save filename, or an empty string if the dialog is dismissed