select_file¶
- class camelot.view.action_steps.select_file.SaveFile(file_name_filter='', file_name=None)[source]¶
Select a file for saving
Parameters: - file_name_filter – Filter on the names of the files that can be selected, such as ‘All files (*)’. See QtGui.QFileDialog for more documentation.
- file_name – None or the default filename to use
- caption¶
The text to display to the user
The yield statement of SaveFile returns a file name. Raises a camelot.core.exception.CancelRequest when no file was selected.
This action step stores its last location into the QtCore.QSettings and uses it as the initial location the next time it is invoked.
- class camelot.view.action_steps.select_file.SelectDirectory[source]¶
Select a single directory
- caption¶
The text to display to the user
- options¶
options to pass to QtGui.QFileDialog.getExistingDirectory(), defaults to QtGui.QFileDialog.ShowDirsOnly
- class camelot.view.action_steps.select_file.SelectFile(file_name_filter='')[source]¶
Select one or more files to open
Parameters: file_name_filter – Filter on the names of the files that can be selected, such as ‘All files (*)’. See QtGui.QFileDialog for more documentation. - single¶
defaults to True, set to False if selection of multiple files is allowed
- caption¶
The text to display to the user
The yield statement of SelectFile returns a list of selected file names. This list has only one element when single is set to True. Raises a camelot.core.exception.CancelRequest when no file was selected.
This action step stores its last location into the QtCore.QSettings and uses it as the initial location the next time it is invoked.