mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
* api docs * more docstrings * logs * docs shakeup * fix notes, added intro to all apis * Remove defaults to * add note to events * note * use fira code
39 lines
604 B
Markdown
39 lines
604 B
Markdown
# Label
|
|
|
|
!!! tip "Added in version 0.5.0"
|
|
|
|
A widget which displays static text, but which can also contain more complex Rich renderables.
|
|
|
|
- [ ] Focusable
|
|
- [ ] Container
|
|
|
|
## Example
|
|
|
|
The example below shows how you can use a `Label` widget to display some text.
|
|
|
|
=== "Output"
|
|
|
|
```{.textual path="docs/examples/widgets/label.py"}
|
|
```
|
|
|
|
=== "label.py"
|
|
|
|
```python
|
|
--8<-- "docs/examples/widgets/label.py"
|
|
```
|
|
|
|
## Reactive Attributes
|
|
|
|
This widget has no reactive attributes.
|
|
|
|
## Messages
|
|
|
|
This widget sends no messages.
|
|
|
|
---
|
|
|
|
|
|
::: textual.widgets.Label
|
|
options:
|
|
heading_level: 2
|