<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Le 13/01/12 15:11, Fabien Lafont a écrit :
<blockquote
cite="mid:CAC9H_chw4CHbM=q-JJbVn0eUumKEAdGM5MYjaoPk08G7O3H_7g@mail.gmail.com"
type="cite">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.
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Fabien</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
Are you sure ?<br>
Your code setEnabled(False) is the good way to disable a widget.<br>
<br>
Please send us a fonctionnal example.<br>
<br>
<div class="moz-signature">-- <br>
Vincent V.V.<br>
<a href="https://launchpad.net/oqapy">Oqapy</a> . <a
href="https://launchpad.net/qarte+7">Qarte+7</a> . <a
href="https://launchpad.net/paqager">PaQager</a></div>
</body>
</html>