Uhmmmmm ... I've just realized that the whole pyqtSignature decorator is implemented in C++. Therefore I'm afraid there's nothing much I can personally do regarding this issue. I'm a C and Python programmer, but, unfortunately absolutely no C++ :(<br>
<br>I do hope though that maybe someone can implement the functionality we've been discussing,<br><br>Thank you.<br><br><div><span class="gmail_quote">2008/3/15, Rocco Orlando Rossi <<a href="mailto:rocco.rossi@gmail.com">rocco.rossi@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes. That would really be nice.<br><br>If you think it's possible to make it work, I'll give it a try myself, although my own experience with decorators is at the moment rather limited :) But I'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'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 <<a href="mailto:phil@riverbankcomputing.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">phil@riverbankcomputing.com</a>>:</span><div>
<span class="e" id="q_118b213490395470_1"><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> > Thanks.<br> ><br> > OK. I understand that.<br> ><br> > And what if the decorator @QtCore.pyqtSignature were modified to accept<br> > more than one argument, so that you could do something like the following?<br>
><br> > @QtCore.pyqtSignature("on_pushButton1_clicked()",<br> > "on_pushButton2_clicked()")<br> > def on_pushButton_clicked(self):<br> > print "Hi Man!"<br> ><br>
> Perhaps this is something that can be achieved.<br> ><br> > What do you think?<br> <br> <br>That may break other uses of pyqtSignature(). However I don't see why the<br> following shouldn't be made to work...<br>
<br> @QtCore.pyqtSignature("on_pushButton1_clicked()")<br> @QtCore.pyqtSignature("on_pushButton2_clicked()")<br> <br> def on_pushButton_clicked(self):<br> print "Hi Man!"<br>
<br> <br>Phil<br> <br>_______________________________________________<br> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote></span></div></div><br><br clear="all"><div><span class="e" id="q_118b213490395470_3"><br>-- <br>Rocco Rossi<br><br>-----------------------------------------------------------------<br><br>"Alcuni vedono le cose come sono e dicono perché? Io sogno cose non ancora esistite e chiedo perché no?"<br>
<br>G.B. Shaw
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Rocco Rossi<br><br>-----------------------------------------------------------------<br><br>"Alcuni vedono le cose come sono e dicono perché? Io sogno cose non ancora esistite e chiedo perché no?"<br>
<br>G.B. Shaw