both self.my_button.setEnabled(False) and self.my_button.setDisabled(True)
 worked for me.

On Fri, Jan 13, 2012 at 3:11 PM, Fabien Lafont <lafont.fab...@gmail.com>wrote:

> I can I disable a QPushButton? I've tried   Button.setEnabled(False)  but
> the button only becomes grey and I can click on it again.
>
> Thanks,
>
> Fabien
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
"Attention, attention. Here and now, boys," the mynah repeated. "Here and
now, boys."
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to