GitHub

API reference for Choice.

One option: its title, the value it gives, an optional description shown while it is highlighted, whether it is disabled, and whether it starts selected.

Attributes

AttributeTypeDescription
titlestr
valueA_co
descriptionstr | None = None
disabledbool = False
selectedbool = False

Functions

__init__

__init__(title, value, description=None, disabled=False, selected=False) -> None
ParameterTypeDescription
titlestr
valueA_co
descriptionstr | None = None
disabledbool = False
selectedbool = False