Hi Phil,

==============================================
#!/usr/bin/env python
from PyQt4.Qt import *

a = QObject(None)

called = []
def myslot():
    called.append(True)

QObject.connect(a, SIGNAL("destroyed()"), a, SIGNAL("QUIT"))
QObject.connect(a, SIGNAL("destroyed()"), myslot)
QObject.connect(a, SIGNAL("QUIT"), myslot)

del a
assert len(called) == 2, len(called)
==============================================

This fails for me with PyQt 4.1.1 and SIP-snapshot-20061220 (the slot is invoked only once). I didn't test with newer SIP snapshots though.
--
Giovanni Bajo

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to