Загрузка
AxesWidgetThe base class for CheckButtons and RadioButtons.
This class provides common functionality for button widgets, such as handling click events, managing button labels, and connecting callbacks.
The class itself is private and may be changed or removed without prior warning. However, the public API it provides to subclasses is stable and considered public on the subclasses.
Remove the observer with connection id cid.
Connect the callback function func to button click events.
When the button is clicked, call func with button label. When all buttons are cleared, call func with None. The callback func must have the signature:
def func(label: str | None) -> Any
Return values may exist, but are ignored.
Set properties of the Text labels.
Dictionary of Text properties to be used for the labels. Same
format as label_props argument of RadioButtons or
CheckButtons.