vimsheet.ui.chart_screen
Chart display overlay for VimSheet.
- class vimsheet.ui.chart_screen.ChartScreen(chart_text, title='Chart')[source]
Bases:
VimModalScreenFull-screen modal that displays a rendered ASCII chart.
- DEFAULT_CSS = '\n ChartScreen {\n align: center middle;\n }\n ChartScreen > VerticalScroll {\n background: $surface;\n border: thick $primary;\n padding: 1 2;\n width: 92%;\n height: 92%;\n }\n ChartScreen > VerticalScroll > Static {\n width: auto;\n }\n '
Default TCSS.
- compose()[source]
Called by Textual to create child widgets.
This method is called when a widget is mounted or by setting
recompose=Truewhen calling [refresh()][textual.widget.Widget.refresh].Note that you don’t typically need to explicitly call this method.
Example
```python def compose(self) -> ComposeResult:
yield Header() yield Label(“Press the button below:”) yield Button() yield Footer()
- Return type:
Iterable[Widget]
- can_focus = False
Widget may receive focus.
- can_focus_children = True
Widget’s children may receive focus.