[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: QML, Python, Signals, and Slots Part 2
From: Luca Beltrame <einar () heavensinferno ! net>
Date: 2012-06-25 5:35:35
Message-ID: 1707933.5Zt55ynx7J () leon ! lan
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic