标签: python pyqt qcheckbox qbuttongroup
如何选择
qbuttongroup
在python中?
self.group = QtGui.QButtonGroup()
答案 0 :(得分:2)
使用buttons()方法迭代它们:
buttons()
def setAllButtonsChecked(self, checked=True) for button in self.group.buttons(): button.setChecked(checked)