edifice.RadioButton¶
-
class
edifice.RadioButton(checked=False, text='', on_change=<function RadioButton.<lambda>>, **kwargs)[source]¶ Bases:
edifice.base_components.QtWidgetComponentRadio buttons.
Three mutually exclusive radio buttons.¶
Radio buttons are used to specify a single choice out of many. Radio buttons belonging to the same parent component are exclusive: only one may be selected at a time.
- Parameters
checked (
bool) – whether or not the checkbox is checked initiallytext (
Any) – text for the label of the checkboxon_change (
Callable[[bool],None]) – callback for when the check box state changes. The callback receives the new state of the check box as an argument.
Methods
set_on_change(on_change)Attributes
childrenThe children of this component.
propsThe props of this component.