[PyQt] Disconnects slot from signal

Florian Bruhin me at the-compiler.org
Thu Dec 4 05:40:03 GMT 2014


* iMath <2281570025 at qq.com> [2014-12-04 11:09:32 +0800]:
> I made a mistake before  ,the three‍ lines code all worked ,just consider my suggestion for letting disconnect([slot]) in the New-style Signal and Slot returns a bool value to hint if the connection is broken or not .‍

It raises an exception if not, e.g. "TypeError: 'function' object is
not connected".

-- 
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/20141204/7f45b2d4/attachment-0001.sig>


More information about the PyQt mailing list