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">phil@riverbankcomputing.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;">
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">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>"Alcuni vedono le cose come sono e dicono perché? Io sogno cose non ancora esistite e chiedo perché no?"<br>
<br>G.B. Shaw