擅长:python、mysql、java
<p>多亏了mandel的提醒,一个快速的解决方法就是将代码改成如下代码:</p>
<pre><code>if value >= self.onValue and self.buttonDict[checkedButtonName][1] == self.offValue:
for button in buttonGroup.buttons():
if button != checkedButton:
button.toggle()
</code></pre>