[PyQt] Signal filtering based on arguments

Florian Bruhin me at the-compiler.org
Wed Oct 8 12:15:02 BST 2014


Hi Kovid,

* Kovid Goyal <kovid at kovidgoyal.net> [2014-10-08 12:33:13 +0530]:
> weakref.ref() and sip.isdeleted() if you want the config object to store
> a list of listeners.

Thanks, using weakref.ref() did the trick. It seems that's enough,
even without sip.isdeleted() - the weakref is None automatically after
Qt destroyed the object.

Still open for other ideas, but at least that's a good quick fix for
now :)

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
             GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141008/be0c612a/attachment.sig>


More information about the PyQt mailing list