[PyQt] PyQt4 signal issue

Detlev Offenbach detlev at die-offenbachs.de
Sun Jan 23 14:57:13 GMT 2011


Hi,

I am observing an issue disconnecting a signal using the new style signal-
slots API. If the signal to be disconnected is not connected, I am getting a 
TypeError exception. Using the old style API, the code silently ignores the 
disconnect. The little script in the attachment shows the issue by commenting 
the various lines in the disconnect_method method. Is there a method to check, 
if a signal-slot connection has been established (e.g. 
mySignal.isConnected(slot) )?

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disconnect.py
Type: text/x-python
Size: 529 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110123/282fee93/attachment.py>


More information about the PyQt mailing list