Auto-save Editor
Editor for the list of periodic HDF5 auto-save points in time: checkbox + date/time save instants.
Overview
quatm/GUI/editors/auto_save_editor.py provides the auto-save editor (AutoSaveEditor): a popup
dialog for editing the “list of points in time” of the periodic HDF5 auto-save, where every row is one
(tick mark + date/time) pair and a ticked row triggers one auto-save at the corresponding instant. The
configuration is stored in a property (such as regular_auto_save_times).
Components
| Component | Description |
|---|---|
AutoSaveEditor | Auto-save point-in-time editor (BWidget popup) |
DateTimeWidget | Single-row date/time + tick widget |
Key methods
| Method | Description |
|---|---|
load_AutoSaveEditor_props | Reads the date/times and tick states from the properties (static) |
update_props | Writes the date/times and tick states back to the properties (static) |
update_datetime / update_ticked | Updates when the date/time / tick state of a row changes |
accept | Saves the changes and closes the window |
Usage
from quatm.GUI.editors.auto_save_editor import AutoSaveEditor
editor = AutoSaveEditor(props=props, max_items=20, parent=parent)
editor.show()
For a fuller description see Auto-save.