Home | Trees | Index | Help |
|
---|
Package driver :: Module event :: Class Event |
|
HookEvent
,
InputEvent
,
KickEvent
Method Summary | |
---|---|
__init__(self)
| |
__repr__(self)
| |
String representing the event. | |
Enqueues the current Event in the engine's event queue for later execution. | |
This is the method that gets called after the event has been plucked off the Queue and is being handled. |
Method Details |
---|
__str__(self)
String representing the event. This is useful for verbose mode where
we log all the events we've handled.
|
enqueue(self)Enqueues the current Event in the engine's event queue for later execution. |
execute(self, my_engine)This is the method that gets called after the event has been plucked off the Queue and is being handled. It takes a Engine object so it knows how to access things. Exceptions that are kicked up and not handled by the event will get handled by the loop that dequeues and executes events. But in general, it's probably not a good thing to be throwing around unhandled exceptions.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Wed Jan 21 21:00:06 2004 | http://epydoc.sf.net |