Home | Trees | Index | Help |
---|
Package pygsear :: Module Event :: Class TIMEOUT_Event |
|
object
--+ |Sprite
--+ |Event
--+ | TIMEOUT_Event
Method Summary | |
---|---|
Initialize a TIMEOUT Event | |
a new object with type S, a subtype of T |
|
__repr__(self)
(inherited from Sprite )
| |
Add this Event to an EventGroup . (inherited from Event )
| |
add_internal(self,
group)
(inherited from Sprite )
| |
alive() -> bool ask the life of a sprite (inherited from Sprite )
| |
Make the Event callback, then either count down calls or disable. | |
Do not allow callbacks to go through. (inherited from Event )
| |
Allow callbacks to go through. (inherited from Event )
| |
groups() -> list list used sprite containers (inherited from Sprite )
| |
kill() end life of sprite, remove from all groups (inherited from Sprite )
| |
Do nothing. (inherited from Event )
| |
remove(group) remove a sprite from container (inherited from Sprite )
| |
remove_internal(self,
group)
(inherited from Sprite )
| |
Reset the Event to its initial state. | |
set_count(self,
count)
| |
Count down ticks until time to call. | |
update(self,
*args)
(inherited from Sprite )
|
Method Details |
---|
__init__(self,
delay,
count=1,
callback=None,
keepalive=False,
**kwargs)
Initialize a TIMEOUT Event
|
__new__(S, ...)
|
call(self, pygame_event, **kwargs)Make the Event callback, then either count down calls or disable. If thecount on this Event reaches 0 , it
will be Event.disable d. If keepalive
is False it will also be pygame.sprite.Sprite.kill ed. Note that
this means it will have to be added to your EventGroup again if you want to re-use
the Event. This was done to avoid ending up with many disabled events
in the event group.
|
reset(self)Reset the Event to its initial state. |
tick(self, ticks)Count down ticks until time to call.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sun Nov 30 19:33:14 2003 | http://epydoc.sf.net |