[PyQt] PyQt New-style Signal and Slot
redstone-cold
redstone-cold at 163.com
Thu Apr 9 11:22:12 BST 2015
I just found it much more convenient to check bool value than handle exception ,
maybe that's why There are no exceptions in Qt,
sometimes we want to do some processing depends on the return value is true or false .
在2015年04月09 13时12分, "Florian Bruhin"<me at the-compiler.org>写道:
* 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 --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150409/07712976/attachment-0001.html>
More information about the PyQt
mailing list