[PyQt] How to disable a QPushButton?
Fabien Lafont
lafont.fabien at gmail.com
Fri Jan 13 16:06:58 GMT 2012
It works finally well, it was just a problem of connection and I used
set.checkable I wondered it was the setEnabled(False) wich turn the
button to grey color...
Thanks!
2012/1/13 Vincent Vande Vyvre <vincent.vandevyvre at swing.be>:
> Le 13/01/12 15:11, Fabien Lafont a écrit :
>
> 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
>
> Are you sure ?
> Your code setEnabled(False) is the good way to disable a widget.
>
> Please send us a fonctionnal example.
>
> --
> Vincent V.V.
> Oqapy . Qarte+7 . PaQager
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list