[PyQt] QPushButton Checkable

Lawrence Shafer detroit371 at gmail.com
Fri Nov 23 04:16:49 GMT 2007


I have set a QPushButton checkable, so now it "sticks" down when 
clicked. How can I detect that in an if statement?

I tried this but it gives me an AttributeError: toggled error.

if self.startButton.toggled():

Thanks,

Lawrence


More information about the PyQt mailing list