Try this way of connecting:<div><br></div><div>self.btn_save.clicked.connect(self.p)</div><div><br></div><div><br><div class="gmail_quote">On Tue, Jun 29, 2010 at 3:06 PM, Csaba Toth <span dir="ltr">&lt;<a href="mailto:csaba.toth@i3rendszerhaz.hu">csaba.toth@i3rendszerhaz.hu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
i have a problem with recent PyQt versions, sometimes a signal (what i<br>
saw was with button click signal) emitted twice.<br>
<br>
for example i use this:<br>
<br>
def p(self, clicked=False):<br>
    print(&#39;emitted&#39;)<br>
self.connect(self.btn_save, QtCore.SIGNAL(&quot;clicked(bool)&quot;), self.p)<br>
<br>
and if i press the button it wrotes twice the &#39;emitted&#39; to console.<br>
What i make wrong?<br>
<br>
thanks in advance,<br>
Csaba<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"><br>-- <br>Nick Gaens<br>
</div>