Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何选择中的所有复选框
qbuttongroup
在蟒蛇?
self.group = QtGui.QButtonGroup()
使用以下方法迭代它们buttons():
buttons()
def setAllButtonsChecked(self, checked=True) for button in self.group.buttons(): button.setChecked(checked)