Page contracts¶
Protocols and registrations used by application-owned pages. See Pages and the workbench for lifecycle guidance and view selection.
Page and navigation contracts for consumer-owned operator pages.
NotifySeverity ¶
NotifySeverity = Literal['information', 'warning', 'error']
Toast severities the shell forwards to Textual's notification system.
OperatorPage ¶
Bases: Protocol
Structural contract implemented by consumer Textual widgets.
PageContext ¶
Bases: Protocol
Narrow context passed to page factories.
PageRegistration
dataclass
¶
PageRegistration(
route: PageRoute,
factory: Callable[[PageContext], OperatorPage],
)
PageRegistry ¶
PageRegistry(routes: Sequence[PageRoute])
PageRoute
dataclass
¶
PageRoute(key: str, label: str, purpose: str)
PageSurfacePort ¶
Bases: Protocol
Workbench surface methods consumer pages may call.