cadrumo.entrypoints.tui.ledger.evidence module

Ledger evidence: the attachment review queue, local invoice documents, and adding one.

draft_lines(draft)[source]

Show what the reader found; a field it could not ground reads as unread, not as zero.

Return type:

tuple[str, ...]

Parameters:

draft (LedgerEvidenceDraftV1)

class LedgerEvidenceScreen(controller)[source]

Bases: LedgerWorkspaceScreen

Render safe evidence metadata without document contents or source locators.

Parameters:

controller (LedgerWorkspaceController)

reading

Whether a read or a confirmation is out; a second press waits for it.

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 application-supplied safe metadata with semantic row keys.

Return type:

None

on_data_table_row_selected(event)[source]

Show safe detail for the selected evidence identity.

Return type:

None

Parameters:

event (RowSelected)

on_button_pressed(event)[source]

Add, read or confirm a document; reading waits on the reader’s readiness.

Return type:

None

Parameters:

event (Pressed)

can_focus: bool

Widget may receive focus.

can_focus_children: bool

Widget’s children may receive focus.