Hornwitser c47e31c82e Add new event system
Add event system based on a public dispatch method in Client.  The new
event system bases itself on two types of events, internal event
handlers and user defined event handlers.  Internal event handlers begin
with 'handle_', and user defined events begin with 'on_'.  Events are
dispatched with dispatch(event_name, *args).  The Client class should be
subclassed and the on_<event> handlers defined in it for responding to
events.  The handle_<event> handlers can the overridden to override the
behaviour of the Client class, though this is not recommended.

The subclassing method allows separation of the instance of the client
and the code that handles it.  (i.e. you don't need the instance of the
client object to define event handlers for it).  Though, the old method
of using the event decorator from the instance will still be supported.
2015-10-06 17:34:23 +02:00
..
2015-10-02 21:35:16 -04:00
2015-10-06 17:34:23 +02:00
2015-09-05 00:57:52 -04:00
2015-08-21 18:18:34 -04:00
2015-09-13 22:28:02 -04:00