pyqt_reactive.services.window_code_document

Generic code-document capability for WindowManager-managed windows.

Classes

WindowCodeDocument(title, source[, mime_type])

Rendered code document owned by one managed window.

WindowCodeDocumentDriver()

Read/apply code-mode content for one WindowManager scope.

Exceptions

WindowCodeDocumentError

Raised when a managed window cannot service a code-document request.

exception pyqt_reactive.services.window_code_document.WindowCodeDocumentError[source]

Raised when a managed window cannot service a code-document request.

class pyqt_reactive.services.window_code_document.WindowCodeDocument(title: str, source: str, mime_type: str = 'text/x-python')[source]

Rendered code document owned by one managed window.

title: str
source: str
mime_type: str
__init__(title: str, source: str, mime_type: str = 'text/x-python') None
class pyqt_reactive.services.window_code_document.WindowCodeDocumentDriver[source]

Read/apply code-mode content for one WindowManager scope.

current_revision_token() str | None[source]

Return a document-local revision token when ObjectState is not authoritative.

records_object_state_snapshot_on_apply() bool[source]

Return whether applying this document must advance ObjectState history.

abstractmethod read_document(clean: bool = True) WindowCodeDocument[source]

Return the current code document.

abstractmethod validate_source(source: str) None[source]

Validate source without changing UI state.

abstractmethod apply_source(source: str) None[source]

Apply source through the same state path as interactive code mode.