cadrumo.entrypoints.tui.ledger.classification module

Explicit, command-backed classification flow for one selected transaction.

class LedgerClassificationScreen(controller)[source]

Bases: LedgerConfirmationFlowScreen

Let an operator explicitly edit, confirm, or cancel one classification.

Parameters:

controller (LedgerWorkspaceController)

FLOW_NAME: ClassVar[str]
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.

Return type:

Iterable[Widget]

Example

def compose(self) -> ComposeResult:
    yield Header()
    yield Label("Press the button below:")
    yield Button()
    yield Footer()
on_mount()[source]

Populate explicit authored choices without inferring a classification.

Return type:

None

on_data_table_row_selected(event)[source]

Move an explicit choice into confirmation state.

Return type:

None

Parameters:

event (RowSelected)

on_button_pressed(event)[source]

Confirm through the injected door or cancel without mutation.

Return type:

None

Parameters:

event (Pressed)

can_focus: bool

Widget may receive focus.

can_focus_children: bool

Widget’s children may receive focus.