I am making a GUI by using QtDesigner and PyQt5. There are 60 push buttons and I want to disable/enable 50 of them by pushing 61th push button. How it can be achieved?
One option is to add the buttons you want to enable/disable to a button group. In QtDesigner this can be done by selecting the buttons, right-clicking on the selection and choosing "Assign to button group" in the popup menu. You can then iterate over buttongroup.buttons() to enable/disable them.
How to enable/disable many controls including push buttons simultaneously in PyQt5?