RadioButtons#

Available in backends: qt
Signals#
changed(object)- Emitted when the widget value changes.label_changed(str)- Emitted when the widget label changes.native_parent_changed(object)- Emitted with the backend widget when the widget parent changes.
RadioButtons
#
Bases: CategoricalWidget, _OrientationMixin
An exclusive group of radio buttons, providing a choice from multiple choices.
Parameters:
-
value(Any) –The initially selected choice.
-
choices(Enum, Iterable, or Callable, default:()) –Available choices displayed in the combo box.
-
bind(Callable[[ValueWidget], Any] | Any) –A value or callback to bind this widget. If provided, whenever
widget.valueis accessed, the value provided here will be returned instead.bindmay be a callable, in which casebind(self)will be returned (i.e. your bound callback must accept a single parameter, which is this widget instance). -
nullable(bool) –If
True, the widget will acceptsNoneas a valid value, by defaultFalse. -
**base_widget_kwargs(Any) –All additional keyword arguments are passed to the base
magicgui.widgets.Widgetconstructor.