Popular recipes by Christopher S. Case http://code.activestate.com/recipes/users/4180238/2011-12-12T22:47:25-08:00ActiveState Code RecipesImproved Signals/Slots implementation in Python (Python) 2011-12-12T22:47:25-08:00Christopher S. Casehttp://code.activestate.com/recipes/users/4180238/http://code.activestate.com/recipes/577980-improved-signalsslots-implementation-in-python/ <p style="color: grey"> Python recipe 577980 by <a href="/recipes/users/4180238/">Christopher S. Case</a> (<a href="/recipes/tags/events/">events</a>, <a href="/recipes/tags/qt4/">qt4</a>, <a href="/recipes/tags/signal/">signal</a>, <a href="/recipes/tags/slot/">slot</a>). </p> <p>I've modified the excellent <a href="http://code.activestate.com/recipes/576477-yet-another-signalslot-implementation-in-python/"><a href="http://code.activestate.com/recipes/576477/">recipe 576477</a></a> to allow for non method functions as well as method functions. This implementation also uses a WeakKeyDictionary instead of a WeakValueDictionary for reasons of code simplification/style.</p>