still confused with QTsignal
root
root at localhost.localdomain
Sun Jan 20 08:35:15 EST 2002
I'm now more confused than ever with PYSIGNALS,
in the following class:
class mixer:
def __init__(self, parent=None):
self.ms=mixer_sub(None,parent)
QObject.connect(self.ms,PYSIGNAL("rec_button_clicked"),self.print)
QObject.connect(self.ms,PYSIGNAL("rec_button_clicked"),self.ms.print)
def print(self):
print "Recieved signal"
the print function never gets called even though the print function in the
self.ms object does. I have tried leaving off the 'self' in the 3rd param,
making mixer inherit QObject and lots of variations on the syntax. As far as I
can see this should work but doesn't.
Tony
More information about the Python-list
mailing list