how do I check and uncheck all checkbox in python?

5.3k Views Asked by At

how do I select all checkboxes in

 qbuttongroup

in python ?

    self.group = QtGui.QButtonGroup() 
1

There are 1 best solutions below

0
On

Iterate over them using the buttons() method:

def setAllButtonsChecked(self, checked=True)
    for button in self.group.buttons():
        button.setChecked(checked)