Home | Trees | Index | Help |
---|
Package pygsear :: Module Event :: Class TIMEOUT_Event |
|
object
--+ |Sprite
--+ |Event
--+ | TIMEOUT_Event
Method Summary | |
---|---|
Initialize a TIMEOUT Event | |
Make the Event callback, then either count down calls or disable. | |
Reset the Event to its initial state. | |
set_count(self,
count)
| |
Count down ticks until time to call. | |
Inherited from Event | |
Add this Event to an EventGroup . | |
Do not allow callbacks to go through. | |
Allow callbacks to go through. | |
Do nothing. | |
Inherited from Sprite | |
| |
| |
alive() -> bool check to see if the sprite is in any groups | |
groups() -> list of groups list used sprite containers | |
kill() remove this sprite from all groups | |
remove(group or list of groups, ...) remove a sprite from container | |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Method Details |
---|
__init__(self,
delay,
count=1,
callback=None,
keepalive=False,
**kwargs)
|
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 2.0 on Sat Dec 9 14:11:20 2006 | http://epydoc.sf.net |