def METHOD_NAME(self, button: QAbstractButton) -> None:
    """A button was clicked in the group, emit its id."""
    buttonId = self._group.id(button)
    if buttonId != -1:
        self.buttonClicked.emit(buttonId)
    return