Yes. That would really be nice.<br><br>If you think it&#39;s possible to make it work, I&#39;ll give it a try myself, although my own experience with decorators is at the moment rather limited :) But I&#39;m doing some study in that respect.<br>
<br>It would definitely be cool if this functionality were implemented, because I have the feeling it&#39;s not the kind of rare need that comes up only once in a while.<br><br><br><div><span class="gmail_quote">2008/3/15, Phil Thompson &lt;<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</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 Saturday 15 March 2008, Rocco Orlando Rossi wrote:<br> &gt; Thanks.<br> &gt;<br> &gt; OK. I understand that.<br> &gt;<br> &gt; And what if the decorator @QtCore.pyqtSignature were modified to accept<br> &gt; more than one argument, so that you could do something like the following?<br>
 &gt;<br> &gt; @QtCore.pyqtSignature(&quot;on_pushButton1_clicked()&quot;,<br> &gt; &quot;on_pushButton2_clicked()&quot;)<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; def on_pushButton_clicked(self):<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Hi Man!&quot;<br> &gt;<br>
 &gt; Perhaps this is something that can be achieved.<br> &gt;<br> &gt; What do you think?<br> <br> <br>That may break other uses of pyqtSignature(). However I don&#39;t see why the<br> following shouldn&#39;t be made to work...<br>
 <br>&nbsp;&nbsp;&nbsp;&nbsp;@QtCore.pyqtSignature(&quot;on_pushButton1_clicked()&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;@QtCore.pyqtSignature(&quot;on_pushButton2_clicked()&quot;)<br> <br>&nbsp;&nbsp;&nbsp;&nbsp;def on_pushButton_clicked(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print &quot;Hi Man!&quot;<br>
 <br> <br>Phil<br> <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