vimsheet.ui.fetch_list_screen

FetchListScreen — modal listing all active FETCH cells.

class vimsheet.ui.fetch_list_screen.FetchListScreen(entries)[source]

Bases: VimModalScreen

Modal listing active FETCH cells with URL, interval, status, and last value.

Parameters:

entries (list[tuple[Any, Any]])

DEFAULT_CSS = '\n    FetchListScreen {\n        align: center middle;\n    }\n    FetchListScreen > VerticalScroll {\n        background: $surface;\n        border: thick $primary;\n        padding: 1 2;\n        width: 90;\n        height: 80%;\n    }\n    FetchListScreen > VerticalScroll > Static {\n        width: auto;\n    }\n    '

Default TCSS.

__init__(entries)[source]

Initialize the screen.

Parameters:
  • name – The name of the screen.

  • id – The ID of the screen in the DOM.

  • classes – The CSS classes for the screen.

  • entries (list[tuple[Any, Any]])

Return type:

None

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

```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.