This module defines the basic Event class and common events.
Bases: circuits.core.events.BaseEvent
An Event is a message send to one or more channels. It is eventually dispatched to all components that have handlers for one of the channels and the event type.
All normal arguments and keyword arguments passed to the constructor of an event are passed on to the handler. When declaring a handler, its argument list must therefore match the arguments used for creating the event.
Every event has a name attribute that is used for matching the event with the handlers. By default, the name is the uncameled class name of the event.
Variables: |
|
---|
none
Bases: circuits.core.events.Event
Error Event
This Event is sent for any exceptions that occur during the execution of an Event Handler that is not SystemExit or KeyboardInterrupt.
Parameters: |
|
---|
Bases: circuits.core.events.DerivedEvent
Failure Event
This Event is sent when an error has occurred with the execution of an Event Handlers.
Parameters: | event (Event) – The event that failed |
---|
Bases: circuits.core.events.Event
Registered Event
This Event is sent when a Component has registered with another Component or Manager. This Event is only sent iif the Component or Manager being registered with is not itself.
Parameters: |
|
---|
Bases: circuits.core.events.Event
Signal Event
This Event is sent when a Component receives a signal.
Parameters: |
|
---|
Bases: circuits.core.events.Event
Started Event
This Event is sent when a Component has started running.
Parameters: | component (Component or Manager) – The component that was started |
---|
Bases: circuits.core.events.Event
Stopped Event
This Event is sent when a Component has stopped running.
Parameters: | component (Component or Manager) – The component that has stopped |
---|
Bases: circuits.core.events.DerivedEvent
Success Event
This Event is sent when all handlers (for a particular event) have been executed successfully, see Manager.
Parameters: | event (Event) – The event that has completed. |
---|
Bases: circuits.core.events.Event
Unregister Event
This Event ask for a Component to unregister from its Component or Manager.
Bases: circuits.core.events.Event
Unregistered Event
This Event is sent when a Component has been unregistered from its Component or Manager.
none