Skip to main content

RadioGroup

Examples

See these.

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

Inherits: Control

Properties

  • content - The content of the RadioGroup.
  • value - Current value of the RadioGroup.

Events

  • on_change - Called when the state of the RadioGroup is changed.

Properties

contentinstance-attribute

content: 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: str | None = None

Current value of the RadioGroup.

Events

on_changeclass-attributeinstance-attribute

on_change: ControlEventHandler[RadioGroup] | None = None

Called when the state of the RadioGroup is changed.