Home | Trees | Index | Help |
---|
Package pygsear :: Module Event :: Class KEY_Event |
|
object
--+ |Sprite
--+ |Event
--+ | KEY_Event
KEYDOWN_Event
,
KEYUP_Event
,
Repeat_KEY_Event
Method Summary | |
---|---|
Initialize a keyboard event. | |
Perform the callback, if the event is enabled, and the key pressed is the right key. | |
check_holding(self,
ev,
**kwargs)
| |
press(self,
ev,
**kwargs)
| |
release(self,
ev,
**kwargs)
| |
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,
type=-2,
key=None,
callback=None,
on_press=None,
on_hold=None,
on_release=None,
**kwargs)
Initialize a keyboard event.
|
call(self, pygame_event, **kwargs)Perform the callback, if the event is enabled, and the key pressed is the right key.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sat Dec 9 14:11:20 2006 | http://epydoc.sf.net |