both self.my_button.setEnabled(False) and self.my_button.setDisabled(True) worked for me.<br><br><div class="gmail_quote">On Fri, Jan 13, 2012 at 3:11 PM, Fabien Lafont <span dir="ltr"><<a href="mailto:lafont.fabien@gmail.com">lafont.fabien@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
<br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>"Attention, attention. Here and now, boys," the mynah repeated. "Here and now, boys."<br>