cadrumo.entrypoints.tui.declarations.calendar module¶
Agenda-first host-neutral Declarations calendar screen.
- class DeclarationsCalendarScreen(controller)[source]¶
Bases:
AccountChromeScreenThree-control agenda over an injected immutable safe projection.
- Parameters:
controller (DeclarationsCalendarController)
- BINDINGS: ClassVar¶
A list of key bindings.
- CSS: ClassVar[str]¶
Inline CSS, useful for quick scripts. Rules here take priority over CSS_PATH.
Note
This CSS applies to the whole app.
- compose()[source]¶
Called by Textual to create child widgets.
This method is called when a widget is mounted or by setting recompose=True when calling [refresh()][textual.widget.Widget.refresh].
Note that you don’t typically need to explicitly call this method.
Example
def compose(self) -> ComposeResult: yield Header() yield Label("Press the button below:") yield Button() yield Footer()
- on_mount()[source]¶
Build the table and place focus at the start of the three-control chain.
- Return type:
- on_data_table_row_highlighted(event)[source]¶
Render details for the exact semantic row key.
- Return type:
- Parameters:
event (RowHighlighted)
- on_data_table_row_selected(event)[source]¶
Open a local confirmation before requesting a host-owned recovery.
- Return type:
- Parameters:
event (RowSelected)
- replace_projection(projection)[source]¶
Re-render a newly injected projection while preserving semantic focus.
- Return type:
- Parameters:
projection (DeclarationsCalendarProjectionV1)
- action_back()[source]¶
Leave the calendar for Home.
The calendar is reached from Home’s agenda as often as from the Declarations overview and holds no workspace controller, so it closes the destination rather than routing to an overview it was not opened from.
- Return type:
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.