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.vandevy...@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@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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to