pyqt_reactive.widgets.shared.dirty_window_presenter

Dirty-state presentation for ObjectState-backed form windows.

Classes

DirtyWindowPresentation(window_title, ...[, ...])

Presentation state for a form window's dirty/signature-diff markers.

DirtyWindowPresenter()

Apply dirty/signature-diff state to common form-window affordances.

class pyqt_reactive.widgets.shared.dirty_window_presenter.DirtyWindowPresentation(window_title: str, header_text: str, save_label: str, is_dirty: bool, has_signature_diff: bool, mark_save_label_dirty: bool = True)[source]

Presentation state for a form window’s dirty/signature-diff markers.

window_title: str
header_text: str
save_label: str
is_dirty: bool
has_signature_diff: bool
mark_save_label_dirty: bool
__init__(window_title: str, header_text: str, save_label: str, is_dirty: bool, has_signature_diff: bool, mark_save_label_dirty: bool = True) None
class pyqt_reactive.widgets.shared.dirty_window_presenter.DirtyWindowPresenter[source]

Apply dirty/signature-diff state to common form-window affordances.

apply(*, window: QDialog, header_label: QLabel, save_button: QPushButton, presentation: DirtyWindowPresentation) None[source]