storage

camelot.view.storage.create_stored_file(parent, storage, on_finish, filter='All files (*)', remove_original=False, filename=None)[source]

Popup a QFileDialog, put the selected file in the storage and return the call on_finish with the StoredFile when done

Parameters:on_finish – function that will be called in the gui thread when

the file is stored. the first argument of the function should be the StoredFile

Parameters:filename – if None, a dialog will pop up, asking the user for

the file, otherwise a string with the name of the file to be stored

camelot.view.storage.open_stored_file(parent, stored_file)[source]

Open the stored file with the default system editor for this file type

camelot.view.storage.save_stored_file(parent, stored_file)[source]

Save a stored file as another file

Previous topic

search

Next topic

templates

This Page