自动保存编辑器

周期 h5 自动保存时间点列表编辑器:勾选 + 日期时间的保存时刻配置。

概述

quatm/GUI/editors/auto_save_editor.py 提供自动保存编辑器(AutoSaveEditor) :以弹窗编辑周期 h5 自动保存的“时间点列表”,每一行 = 一个(勾选标记 + 日期时间) ,勾选的行在对应时刻触发一次自动保存。配置保存在属性(如 regular_auto_save_times)中。

组件

组件说明
AutoSaveEditor自动保存时间点编辑器(BWidget 弹窗)
DateTimeWidget单行日期时间 + 勾选控件

关键方法

方法说明
load_AutoSaveEditor_props从属性读取日期时间与勾选状态(静态)
update_props把日期时间与勾选状态写回属性(静态)
update_datetime / update_ticked某一行日期时间 / 勾选变化时更新
accept保存更改并关闭窗口

用法

from quatm.GUI.editors.auto_save_editor import AutoSaveEditor

editor = AutoSaveEditor(props=props, max_items=20, parent=parent)
editor.show()

更完整说明见 自动保存