Eric Coetzee wrote: > Hi, > > I have a situation where I want to set the state of a checkbox while > inside the method that handles the stateChanged event. But I don't > want QCheckBox.stateChanged(state) to be triggered again. > > Can this be done?
Yes, just do: checkbox.blockSignals(True) checkbox.setChecked(...) checkbox.blockSignals(False) Doug _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt