mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
699 B
699 B
RadioSet
A container widget that groups RadioButtons together.
- Focusable
- Container
Example
The example below shows two radio sets, one built using a collection of radio buttons, the other a collection of simple strings.
=== "Output"
```{.textual path="docs/examples/widgets/radio_set.py"}
```
=== "radio_set.py"
```python
--8<-- "docs/examples/widgets/radio_set.py"
```
=== "radio_set.css"
```sass
--8<-- "docs/examples/widgets/radio_set.css"
```
Messages
::: textual.widgets.RadioSet.Changed
See Also
- RadioSet code reference
- RadioButton