On 20 Apr 2010, at 19:51, Doug Bell <do...@bellz.org> wrote:
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
Sweet! Did not know about these methods.
Thanks Doug
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt