nspyre.gui.widgets.save
Module Contents
Classes
Qt widget that saves data from the |
- class nspyre.gui.widgets.save.SaveWidget(timeout=10, additional_filetypes=None, save_dialog_dir=None)
Qt widget that saves data from the
DataServer
to a file.- Parameters:
timeout (float) – Timeout for data sink pop().
additional_filetypes (Optional[Dict[str, Callable]]) – Dictionary containing string keys that represent a file type mapping to functions that will save data to a file. The keys should have the form
'FileType (*.extension1 *.extension2)'
, e.g.,'Pickle (*.pickle *.pkl)"
. Functions should have the signaturesave(filename: str, data: Any)
.save_dialog_dir (Optional[Union[str, pathlib.Path]]) – Directory where the file dialog begins. If
None
, default to the user home directory.