Hi all.<br><br>I&#39;m new to PyQt. I&#39;m coming from pygtk and Glade, but I
am really very interested in trying out PyQt, Eric, and Designer as a
more valid alternative.<br><br>Now, very briefly, here&#39;s my problem. I
was attempting to autoconnect&nbsp; two different signals to the same method
function, but I quickly realized that it isn&#39;t at all obvious how to go
about doing something like that. I thought the decorator pyqtSignature
might do the trick, but unfortunately chaining those decorators did not
work.<br>
<br>Any ideas?<br><br>Here&#39;s the example code I was working on:<br><br>#!/usr/bin/env python<br>import sys<br><br>from PyQt4 import QtCore, QtGui, uic<br><br>(form_class, base_class) = uic.loadUiType(&quot;qtui.ui&quot;)<br>

<br>class MyForm(form_class, base_class):<br>&nbsp;&nbsp;&nbsp; def __init__(self, *args):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base_class.__init__(self, *args)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.setupUi(self)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; @QtCore.pyqtSignature(&quot;on_pushButton1_clicked()&quot;)<br>

&nbsp;&nbsp;&nbsp; @QtCore.pyqtSignature(&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>app = QtGui.QApplication(sys.argv)<br>form = MyForm()<br>form.show()<br>
app.exec_()<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