cadrumo.entrypoints.tui.ledger.entries module¶
The operator’s own Ledger entries, shown in full.
- class LedgerEntriesScreen(controller)[source]¶
Bases:
LedgerWorkspaceScreenShow each entry’s own facts: date, amount, counterparty, classification.
The column SET is responsive, the data is not. Seven columns do not fit the 80-column floor, so narrow terminals drop the lowest-priority columns rather than overflowing the right edge, where content is unreachable. The order in _COLUMNS is that priority: date and description first because they identify the entry, review status last-but-kept because it is what the operator is acting on.
Nothing is withheld – every column returns as the terminal widens, and the projection behind it always carries the full record.
- Parameters:
controller (LedgerWorkspaceController)
- 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_data_table_row_selected(event)[source]¶
Route navigation or retain a safe semantic entry selection.
- Return type:
- Parameters:
event (RowSelected)
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.