event Package — alarmdecoder documentation

### Navigation

- index
- modules |
- alarmdecoder documentation »

# event Package

## `event` Package

## `event` Module

class `alarmdecoder.event.event.` `Event`(doc=None)

  Bases: `object`

class `alarmdecoder.event.event.` `EventHandler`(event, obj)

  Bases: `object`

  `add`(func)

    Add new event handler function.

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

  `remove`(func)

    Remove existing event handler function.

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

  `fire`(*args, **kwargs)

    Fire event and call all handler functions

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

### Navigation

- index
- modules |
- alarmdecoder documentation »