Thanks.<br><br>OK. I understand that.<br><br>And what if the decorator @QtCore.pyqtSignature were modified to accept more than one argument, so that you could do something like the following?<br><br>@QtCore.pyqtSignature(&quot;on_pushButton1_clicked()&quot;, &quot;on_pushButton2_clicked()&quot;)<br>
&nbsp;&nbsp;&nbsp; def on_pushButton_clicked(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Hi Man!&quot;<br><br>Perhaps this is something that can be achieved.<br><br>What do you think?<br><br><br><div><span class="gmail_quote">2008/3/15, Andreas Pakulat &lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 15.03.08 09:31:14, Rocco Orlando Rossi wrote:<br> &gt; Hi all.<br> &gt;<br> &gt; I&#39;m new to PyQt. I&#39;m coming from pygtk and Glade, but I am really very<br> &gt; interested in trying out PyQt, Eric, and Designer as a more valid<br>
 &gt; alternative.<br> &gt;<br> &gt; Now, very briefly, here&#39;s my problem. I was attempting to autoconnect&nbsp;&nbsp;two<br> &gt; different signals to the same method function, but I quickly realized that<br> &gt; it isn&#39;t at all obvious how to go about doing something like that. I thought<br>
 &gt; the decorator pyqtSignature might do the trick, but unfortunately chaining<br> &gt; those decorators did not work.<br> &gt;<br> &gt; Any ideas?<br> <br> <br>The simple answer is: You can&#39;t. That is you can&#39;t do this via the<br>
 auto-connect feature. That features uses the method name to find out the<br> actual signal to use, so on_pushButton_clicked is a slot thats only<br> called when the clicked signal of &quot;pushButton&quot; is emitted.<br>
 <br> You have to write the two connect statements in your __init__.<br> <br> Andreas<br> <br><br> --<br> Your boss climbed the corporate ladder, wrong by wrong.<br> _______________________________________________<br> PyQt mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
 <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> </blockquote></div><br><br clear="all"><br>-- <br>Rocco Rossi<br><br>-----------------------------------------------------------------<br>
<br>&quot;Alcuni vedono le cose come sono e dicono perché? Io sogno cose non ancora esistite e chiedo perché no?&quot;<br><br>G.B. Shaw