pdwidgets.widgets.radio_group

Radio button group coordinator.

class pdwidgets.widgets.radio_group.RadioGroup(parent)[source]

Bases: Widget

Invisible coordinator that enforces single radio selection.

invalidate()[source]

No-op: an invisible, zero-size group never needs redrawing.

draw(area=None)[source]

No-op: the group draws nothing.

add(radio_button)[source]

Add a RadioButton to the group.

Parameters:

radio_button (RadioButton) – The RadioButton to add to the group.

set_checked(selected_button)[source]

Ensure only the selected button is checked in the group.

Parameters:

selected_button (RadioButton) – The RadioButton to check.