In a pyqt5 app I want to untoggle a button when any other button is clicked.
Is it possible to have a signal emitted when any button inside a layout or a widget is clicked?
I can connect each button click to an untoggle function but that would be hard to maintain if the buttons ever change. Is there a clean way to achieve the same functionality without having to connect the buttons one by one?
What you want is added functionality for an existing type.  This suggests that you want to write an extension of the Button class.  Write a class that inherits from Button.  Write your own function to handle button clicks: this function will call your toggle function and then call the parent's button click handler.
Emit a signal when any button is pressed