Skip to main content

RadioGroup

Examples

See these.

Radio buttons let people select a single option from two or more choices.

Inherits: Control

Properties

Events

Properties

contentinstance-attribute

content: Annotated[Control, V.visible_control()]

The content of the RadioGroup.

Typically a list of Radio controls nested in a container control, e.g. Column, Row.

Raises:

  • ValueError - If content is not visible.

valueclass-attributeinstance-attribute

value: Optional[str] = None

Current value of the RadioGroup.

Events

on_changeclass-attributeinstance-attribute

on_change: Optional[ControlEventHandler[RadioGroup]] = None

Called when the state of the RadioGroup is changed.