[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] SIGNAL-to-SIGNAL connection seems broken
From:       Giovanni Bajo <rasky () develer ! com>
Date:       2007-01-24 23:43:14
Message-ID: 45B7EF12.20702 () develer ! com
[Download RAW message or body]

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    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic