Monday, 13 May 2013

Simple Events in Python

Having C# background and moving newly to Python, I was trying to find the easiest way to have some kind events in my Python classes and found this post very simple and useful.

All you need is to add this 'EventHook' class to your code and add events and event handlers to your code, exactly the same way as you did for your C# code.