Home | Trees | Index | Help |
---|
Package pygsear :: Module Event :: Class EventGroup |
|
object
--+ |AbstractGroup
--+ |Group
--+ | EventGroup
Method Summary | |
---|---|
Initialize the Group. | |
Add the event to the container. | |
Go through the pygame event queue and callback to events that should be triggered. | |
Do not allow callbacks to any sprites in this group to go through. | |
Allow callbacks to all events in this group to go through. | |
return a list of all events in this group. | |
Call the kill method on every event in this group, to
remove all of the events from all of the groups they are in. | |
Inherited from AbstractGroup | |
| |
| |
len(group) number of sprites in group | |
| |
| |
| |
clear(surface, bgd) erase the previous position of all sprites | |
copy() copy a group with all the same sprites | |
draw(surface) draw all sprites onto the surface | |
empty() remove all sprites | |
has(sprite or group, ...) ask if group has a sprite or sprites | |
| |
remove(sprite, list, or group, ...) remove sprite from group | |
| |
sprites() get a list of sprites in the group | |
update(*args) call update for all member sprites | |
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 |
Class Variable Summary | |
---|---|
Inherited from AbstractGroup | |
bool |
_spritegroup = True
|
Method Details |
---|
__init__(self,
event=())
Initialize the Group.
|
add(self, event)Add the event to the container.
|
check(self)Go through the pygame event queue and callback to events that should be triggered. Also checks the special |
disable(self)Do not allow callbacks to any sprites in this group to go through. |
enable(self)Allow callbacks to all events in this group to go through. |
events(self)return a list of all events in this group. |
kill(self)Call thekill method on every event in this group, to
remove all of the events from all of the groups they are in.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sat Dec 9 14:11:19 2006 | http://epydoc.sf.net |