cadrumo.entrypoints.tui.components.status module¶
Reusable, state-local status presentation for Textual surfaces.
- class PinnedStatusBar(*, summary='', id=None, classes=None)[source]¶
Bases:
VerticalRender supplied summary and status text in a pinned screen channel.
- DEFAULT_CSS: ClassVar[str]¶
Default TCSS.
- property tone: StatusTone¶
Closed tone currently rendered by the status message.
- 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()
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.