|
-
- event Package
- *************
-
-
- "event" Package
- ===============
-
-
- "event" Module
- ==============
-
- class class pyad2.event.event.Event(doc=None)
-
- Bases: "object"
-
- class class pyad2.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(earg=None)
-
- Fire event and call all handler functions
-
- You can call EventHandler object itself like e(earg) instead of
- e.fire(earg).
|