[PyQt] connections vs. instance variables

Eric Frederich eric.frederich at gmail.com
Fri Sep 3 14:51:44 BST 2010


I constantly find myself with options like...
a) create a connection from foo's custom signal to bar's slot.... or
b) when creating the foo object, give it a reference to bar, and instead of
emitting a custom signal, just call bar's slot directly.

What is more lightweight.... an instance variable or a connection?

I'm sure this must be common.
Are there guidelines to use, rules of thumb etc?

Thanks,
~Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100903/5c03b273/attachment.html>


More information about the PyQt mailing list