pyOMA.GUI.HelpersGUI.UnsavedChangesMixin#

class pyOMA.GUI.HelpersGUI.UnsavedChangesMixin[source]#

Bases: object

closeEvent() prompts to save if self._dirty is True.

Subclasses must set self._dirty = True on every mutating action, and implement self._do_save() (call the GUI’s own save_state/ save method) and self._dirty = False after a successful save.

__init__()#

Methods