event Package

event Package

event Module

class alarmdecoder.event.event.Event(doc=None)[source]

Bases: object

class alarmdecoder.event.event.EventHandler(event, obj)[source]

Bases: object


Add new event handler function.

Event handler function must be defined like func(sender, earg). You can add handler also by using ‘+=’ operator.


Remove existing event handler function.

You can remove handler also by using ‘-=’ operator.

fire(*args, **kwargs)[source]

Fire event and call all handler functions

You can call EventHandler object itself like e(*args, **kwargs) instead of e.fire(*args, **kwargs).