event Package

event Package

event Module

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

Bases: object

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

Bases: object

add(func)[source]

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)[source]

Remove existing event handler function.

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

fire(earg=None)[source]

Fire event and call all handler functions

You can call EventHandler object itself like e(earg) instead of e.fire(earg).

Table Of Contents

Previous topic

pyad2usb Package

This Page