Files
textual/docs/widgets/static.md
Will McGugan a46eda2fa0 Added blog
2022-11-06 15:41:12 +00:00

599 B

Static

A widget which displays static content. Can be used for simple text labels, but can also contain more complex Rich renderables.

  • Focusable
  • Container

Example

The example below shows how you can use a Static widget as a simple text label.

=== "Output"

```{.textual path="docs/examples/widgets/static.py"}
```

=== "static.py"

```python
--8<-- "docs/examples/widgets/static.py"
```

Reactive Attributes

This widget has no reactive attributes.

Messages

This widget sends no messages.

See Also