Re: [PyQt] QPushButton Checkable

2007-11-23 Thread Phil Thompson
On Friday 23 November 2007, Lawrence Shafer wrote: > 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(): isChecked() Phil ___

[PyQt] QPushButton Checkable

2007-11-22 Thread Lawrence Shafer
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 ___ PyQt mailing list