[PyQt] How to disable a QPushButton?
Nico Dufort
ndufort at gmail.com
Fri Jan 13 14:25:43 GMT 2012
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.fabien at 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 at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
"Attention, attention. Here and now, boys," the mynah repeated. "Here and
now, boys."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120113/66f49e2b/attachment-0001.html>
More information about the PyQt
mailing list