QML, Python, Signals, and Slots Part 2

Luca Beltrame einar at heavensinferno.net
Mon Jun 25 05:35:35 UTC 2012


In data lunedì 25 giugno 2012 07:51:21, Viranch Mehta ha scritto:

> 1. sender.signal.connect(receiver.slot)

I would recommend this way of connecting signals in, since errors will be 
immediately caught (AttributeError in case of wrong / missing signal) rather 
than silently ignored.

The only case in which option 2 should be used is if the C++ signal has not 
been bound to the Python bindings.

-- 
Luca Beltrame - KDE Forums team
KDE Science supporter
GPG key ID: 6E1A4E79
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120625/ccb31af0/attachment.sig>


More information about the Plasma-devel mailing list