[PyQt] PyQt New-style Signal and Slot

Florian Bruhin me at the-compiler.org
Thu Apr 9 06:12:59 BST 2015


* redstone-cold <redstone-cold at 163.com> [2015-04-09 12:42:37 +0800]:
> I think 
> disconnect([slot]) 
> 
> 
> in the New-style Signal and Slot should return a bool value to hint if the connection is broken or not ,like it in the original Qt.

PyQt raises an exception on a failed disconnection, which is much more
pythonic than a bool you have to check.

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | 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/20150409/3670bb37/attachment.sig>


More information about the PyQt mailing list