pygame (version 1.9.1release)
index
/usr/lib/python2.7/dist-packages/pygame/__init__.py
Module Docs

Pygame is a set of Python modules designed for writing games.
It is written on top of the excellent SDL library. This allows you
to create fully featured games and multimedia programs in the python
language. The package is highly portable, with games running on
Windows, MacOS, OS X, BeOS, FreeBSD, IRIX, and Linux.

 
Package Contents
       
_arraysurfarray
_camera
_camera_opencv_highgui
_camera_vidcapture
_numericsndarray
_numericsurfarray
_numpysndarray
_numpysurfarray
base
bufferproxy
camera
cdrom
color
colordict
compat
constants
cursors
display
docs (package)
draw
event
examples (package)
fastevent
font
gfxdraw
gp2x (package)
image
imageext
joystick
key
locals
mac_scrap
macosx
mask
midi
mixer
mixer_music
mouse
movie
overlay
pixelarray
pkgdata
pypm
rect
rwobject
scrap
sndarray
sprite
surface
surfarray
surflock
sysfont
tests (package)
threads (package)
time
transform
version

 
Classes
       
__builtin__.object
Color
PixelArray
Rect
Surface
Surface
overlay
exceptions.RuntimeError(exceptions.StandardError)
error

 
class Color(__builtin__.object)
    pygame.Color(name): Return Color
pygame.Color(r, g, b, a): Return Color
pygame.Color(rgbvalue): Return Color
pygame object for color representations
 
  Methods defined here:
__add__(...)
x.__add__(y) <==> x+y
__coerce__(...)
x.__coerce__(y) <==> coerce(x, y)
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__div__(...)
x.__div__(y) <==> x/y
__eq__(...)
x.__eq__(y) <==> x==y
__float__(...)
x.__float__() <==> float(x)
__floordiv__(...)
x.__floordiv__(y) <==> x//y
__ge__(...)
x.__ge__(y) <==> x>=y
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__gt__(...)
x.__gt__(y) <==> x>y
__hex__(...)
x.__hex__() <==> hex(x)
__index__(...)
x[y:z] <==> x[y.__index__():z.__index__()]
__int__(...)
x.__int__() <==> int(x)
__invert__(...)
x.__invert__() <==> ~x
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__long__(...)
x.__long__() <==> long(x)
__lt__(...)
x.__lt__(y) <==> x<y
__mod__(...)
x.__mod__(y) <==> x%y
__mul__(...)
x.__mul__(y) <==> x*y
__ne__(...)
x.__ne__(y) <==> x!=y
__oct__(...)
x.__oct__() <==> oct(x)
__radd__(...)
x.__radd__(y) <==> y+x
__rdiv__(...)
x.__rdiv__(y) <==> y/x
__repr__(...)
x.__repr__() <==> repr(x)
__rfloordiv__(...)
x.__rfloordiv__(y) <==> y//x
__rmod__(...)
x.__rmod__(y) <==> y%x
__rmul__(...)
x.__rmul__(y) <==> y*x
__rsub__(...)
x.__rsub__(y) <==> y-x
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__sub__(...)
x.__sub__(y) <==> x-y
correct_gamma(...)
Color.correct_gamma (gamma): Return Color
Applies a certain gamma value to the Color.
normalize(...)
Color.normalize(): Return tuple
Returns the normalized RGBA values of the Color.
set_length(...)
Color.set_length(len)
Set the number of elements in the Color to 1,2,3, or 4.

Data descriptors defined here:
a
Color.a: Return int
Gets or sets the alpha value of the Color.
b
Color.b: Return int
Gets or sets the blue value of the Color.
cmy
Color.cmy: Return tuple
Gets or sets the CMY representation of the Color.
g
Color.g: Return int
Gets or sets the green value of the Color.
hsla
Color.hsla: Return tuple
Gets or sets the HSLA representation of the Color.
hsva
Color.hsva: Return tuple
Gets or sets the HSVA representation of the Color.
i1i2i3
Color.i1i2i3: Return tuple
Gets or sets the I1I2I3 representation of the Color.
r
Color.r: Return int
Gets or sets the red value of the Color.

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
Overlay = class overlay(__builtin__.object)
    pygame.Overlay(format, (width, height)): return Overlay
pygame object for video overlay graphics
 
  Methods defined here:
display(...)
Overlay.display((y, u, v)): return None
Overlay.display(): return None
set the overlay pixel data
get_hardware(...)
Overlay.get_hardware(rect): return int
test if the Overlay is hardware accelerated
set_location(...)
Overlay.set_location(rect): return None
control where the overlay is displayed

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class PixelArray(__builtin__.object)
    pygame.PixelArray(Surface): return PixelArray
pygame object for direct pixel access of surfaces
 
  Methods defined here:
__contains__(...)
x.__contains__(y) <==> y in x
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__delslice__(...)
x.__delslice__(i, j) <==> del x[i:j]
 
Use of negative indices is not supported.
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__iter__(...)
x.__iter__() <==> iter(x)
__len__(...)
x.__len__() <==> len(x)
__repr__(...)
x.__repr__() <==> repr(x)
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__setslice__(...)
x.__setslice__(i, j, y) <==> x[i:j]=y
 
Use  of negative indices is not supported.
compare(...)
PixelArray.compare (array, distance=0, weights=(0.299, 0.587, 0.114)): Return PixelArray
Compares the PixelArray with another one.
extract(...)
PixelArray.extract (color, distance=0, weights=(0.299, 0.587, 0.114)): Return PixelArray
Extracts the passed color from the PixelArray.
make_surface(...)
PixelArray.make_surface (): Return Surface
Creates a new Surface from the current PixelArray.
replace(...)
PixelArray.replace (color, repcolor, distance=0, weights=(0.299, 0.587, 0.114)): Return None
Replaces the passed color in the PixelArray with another one.

Data descriptors defined here:
__dict__
surface
PixelArray.surface: Return Surface
Gets the Surface the PixelArray uses.

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Rect(__builtin__.object)
    pygame.Rect(left, top, width, height): return Rect
pygame.Rect((left, top), (width, height)): return Rect
pygame.Rect(object): return Rect
pygame object for storing rectangular coordinates
 
  Methods defined here:
__coerce__(...)
x.__coerce__(y) <==> coerce(x, y)
__copy__(...)
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__delslice__(...)
x.__delslice__(i, j) <==> del x[i:j]
 
Use of negative indices is not supported.
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__gt__(...)
x.__gt__(y) <==> x>y
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__ne__(...)
x.__ne__(y) <==> x!=y
__nonzero__(...)
x.__nonzero__() <==> x != 0
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__setslice__(...)
x.__setslice__(i, j, y) <==> x[i:j]=y
 
Use  of negative indices is not supported.
__str__(...)
x.__str__() <==> str(x)
clamp(...)
Rect.clamp(Rect): return Rect
moves the rectangle inside another
clamp_ip(...)
Rect.clamp_ip(Rect): return None
moves the rectangle inside another, in place
clip(...)
Rect.clip(Rect): return Rect
crops a rectangle inside another
collidedict(...)
Rect.collidedict(dict): return (key, value)
test if one rectangle in a dictionary intersects
collidedictall(...)
Rect.collidedictall(dict): return [(key, value), ...]
test if all rectangles in a dictionary intersect
collidelist(...)
Rect.collidelist(list): return index
test if one rectangle in a list intersects
collidelistall(...)
Rect.collidelistall(list): return indices
test if all rectangles in a list intersect
collidepoint(...)
Rect.collidepoint(x, y): return bool
Rect.collidepoint((x,y)): return bool
test if a point is inside a rectangle
colliderect(...)
Rect.colliderect(Rect): return bool
test if two rectangles overlap
contains(...)
Rect.contains(Rect): return bool
test if one rectangle is inside another
copy(...)
Rect.copy(): return Rect
copy the rectangle
fit(...)
Rect.fit(Rect): return Rect
resize and move a rectangle with aspect ratio
inflate(...)
Rect.inflate(x, y): return Rect
grow or shrink the rectangle size
inflate_ip(...)
Rect.inflate_ip(x, y): return None
grow or shrink the rectangle size, in place
move(...)
Rect.move(x, y): return Rect
moves the rectangle
move_ip(...)
Rect.move_ip(x, y): return None
moves the rectangle, in place
normalize(...)
Rect.normalize(): return None
correct negative sizes
union(...)
Rect.union(Rect): return Rect
joins two rectangles into one
union_ip(...)
Rect.union_ip(Rect): return None
joins two rectangles into one, in place
unionall(...)
Rect.unionall(Rect_sequence): return Rect
the union of many rectangles
unionall_ip(...)
Rect.unionall_ip(Rect_sequence): return None
the union of many rectangles, in place

Data descriptors defined here:
__safe_for_unpickling__
bottom
bottomleft
bottomright
center
centerx
centery
h
height
left
midbottom
midleft
midright
midtop
right
size
top
topleft
topright
w
width
x
y

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Surface(__builtin__.object)
    pygame.Surface((width, height), flags=0, depth=0, masks=None): return Surface
pygame.Surface((width, height), flags=0, Surface): return Surface
pygame object for representing images
 
  Methods defined here:
__copy__(...)
Surface.copy(): return Surface
create a new copy of a Surface
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
blit(...)
Surface.blit(source, dest, area=None, special_flags = 0): return Rect
draw one image onto another
convert(...)
Surface.convert(Surface): return Surface
Surface.convert(depth, flags=0): return Surface
Surface.convert(masks, flags=0): return Surface
Surface.convert(): return Surface
change the pixel format of an image
convert_alpha(...)
Surface.convert_alpha(Surface): return Surface
Surface.convert_alpha(): return Surface
change the pixel format of an image including per pixel alphas
copy(...)
Surface.copy(): return Surface
create a new copy of a Surface
fill(...)
Surface.fill(color, rect=None, special_flags=0): return Rect
fill Surface with a solid color
get_abs_offset(...)
Surface.get_abs_offset(): return (x, y)
find the absolute position of a child subsurface inside its top level parent
get_abs_parent(...)
Surface.get_abs_parent(): return Surface
find the top level parent of a subsurface
get_alpha(...)
Surface.get_alpha(): return int_value or None
get the current Surface transparency value
get_at(...)
Surface.get_at((x, y)): return Color
get the color value at a single pixel
get_bitsize(...)
Surface.get_bitsize(): return int
get the bit depth of the Surface pixel format
get_bounding_rect(...)
Surface.get_bounding_rect(min_alpha = 1): return Rect
find the smallest rect containing data
get_buffer(...)
Surface.get_buffer(): return BufferProxy
acquires a buffer object for the pixels of the Surface.
get_bytesize(...)
Surface.get_bytesize(): return int
get the bytes used per Surface pixel
get_clip(...)
Surface.get_clip(): return Rect
get the current clipping area of the Surface
get_colorkey(...)
Surface.get_colorkey(): return RGB or None
Get the current transparent colorkey
get_flags(...)
Surface.get_flags(): return int
get the additional flags used for the Surface
get_height(...)
Surface.get_height(): return height
get the height of the Surface
get_locked(...)
Surface.get_locked(): return bool
test if the Surface is current locked
get_locks(...)
Surface.get_locks(): return tuple
Gets the locks for the Surface
get_losses(...)
Surface.get_losses(): return (R, G, B, A)
the significant bits used to convert between a color and a mapped integer
get_masks(...)
Surface.get_masks(): return (R, G, B, A)
the bitmasks needed to convert between a color and a mapped integer
get_offset(...)
Surface.get_offset(): return (x, y)
find the position of a child subsurface inside a parent
get_palette(...)
Surface.get_palette(): return [RGB, RGB, RGB, ...]
get the color index palette for an 8bit Surface
get_palette_at(...)
Surface.get_palette_at(index): return RGB
get the color for a single entry in a palette
get_parent(...)
Surface.get_parent(): return Surface
find the parent of a subsurface
get_pitch(...)
Surface.get_pitch(): return int
get the number of bytes used per Surface row
get_rect(...)
Surface.get_rect(**kwargs): return Rect
get the rectangular area of the Surface
get_shifts(...)
Surface.get_shifts(): return (R, G, B, A)
the bit shifts needed to convert between a color and a mapped integer
get_size(...)
Surface.get_size(): return (width, height)
get the dimensions of the Surface
get_width(...)
Surface.get_width(): return width
get the width of the Surface
lock(...)
Surface.lock(): return None
lock the Surface memory for pixel access
map_rgb(...)
Surface.map_rgb(Color): return mapped_int
convert a color into a mapped color value
mustlock(...)
Surface.mustlock(): return bool
test if the Surface requires locking
scroll(...)
Surface.scroll(dx=0, dy=0): return None
Shift the surface image in place
set_alpha(...)
Surface.set_alpha(value, flags=0): return None
Surface.set_alpha(None): return None
set the alpha value for the full Surface image
set_at(...)
Surface.set_at((x, y), Color): return None
set the color value for a single pixel
set_clip(...)
Surface.set_clip(rect): return None
Surface.set_clip(None): return None
set the current clipping area of the Surface
set_colorkey(...)
Surface.set_colorkey(Color, flags=0): return None
Surface.set_colorkey(None): return None
Set the transparent colorkey
set_masks(...)
Surface.set_masks((r,g,b,a)): return None
set the bitmasks needed to convert between a color and a mapped integer
set_palette(...)
Surface.set_palette([RGB, RGB, RGB, ...]): return None
set the color palette for an 8bit Surface
set_palette_at(...)
Surface.set_at(index, RGB): return None
set the color for a single index in an 8bit Surface palette
set_shifts(...)
Surface.get_shifts((r,g,b,a)): return None
sets the bit shifts needed to convert between a color and a mapped integer
subsurface(...)
Surface.subsurface(Rect): return Surface
create a new surface that references its parent
unlock(...)
Surface.unlock(): return None
unlock the Surface memory from pixel access
unmap_rgb(...)
Surface.map_rgb(mapped_int): return Color
convert a mapped integer color value into a Color

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
SurfaceType = class Surface(__builtin__.object)
    pygame.Surface((width, height), flags=0, depth=0, masks=None): return Surface
pygame.Surface((width, height), flags=0, Surface): return Surface
pygame object for representing images
 
  Methods defined here:
__copy__(...)
Surface.copy(): return Surface
create a new copy of a Surface
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
blit(...)
Surface.blit(source, dest, area=None, special_flags = 0): return Rect
draw one image onto another
convert(...)
Surface.convert(Surface): return Surface
Surface.convert(depth, flags=0): return Surface
Surface.convert(masks, flags=0): return Surface
Surface.convert(): return Surface
change the pixel format of an image
convert_alpha(...)
Surface.convert_alpha(Surface): return Surface
Surface.convert_alpha(): return Surface
change the pixel format of an image including per pixel alphas
copy(...)
Surface.copy(): return Surface
create a new copy of a Surface
fill(...)
Surface.fill(color, rect=None, special_flags=0): return Rect
fill Surface with a solid color
get_abs_offset(...)
Surface.get_abs_offset(): return (x, y)
find the absolute position of a child subsurface inside its top level parent
get_abs_parent(...)
Surface.get_abs_parent(): return Surface
find the top level parent of a subsurface
get_alpha(...)
Surface.get_alpha(): return int_value or None
get the current Surface transparency value
get_at(...)
Surface.get_at((x, y)): return Color
get the color value at a single pixel
get_bitsize(...)
Surface.get_bitsize(): return int
get the bit depth of the Surface pixel format
get_bounding_rect(...)
Surface.get_bounding_rect(min_alpha = 1): return Rect
find the smallest rect containing data
get_buffer(...)
Surface.get_buffer(): return BufferProxy
acquires a buffer object for the pixels of the Surface.
get_bytesize(...)
Surface.get_bytesize(): return int
get the bytes used per Surface pixel
get_clip(...)
Surface.get_clip(): return Rect
get the current clipping area of the Surface
get_colorkey(...)
Surface.get_colorkey(): return RGB or None
Get the current transparent colorkey
get_flags(...)
Surface.get_flags(): return int
get the additional flags used for the Surface
get_height(...)
Surface.get_height(): return height
get the height of the Surface
get_locked(...)
Surface.get_locked(): return bool
test if the Surface is current locked
get_locks(...)
Surface.get_locks(): return tuple
Gets the locks for the Surface
get_losses(...)
Surface.get_losses(): return (R, G, B, A)
the significant bits used to convert between a color and a mapped integer
get_masks(...)
Surface.get_masks(): return (R, G, B, A)
the bitmasks needed to convert between a color and a mapped integer
get_offset(...)
Surface.get_offset(): return (x, y)
find the position of a child subsurface inside a parent
get_palette(...)
Surface.get_palette(): return [RGB, RGB, RGB, ...]
get the color index palette for an 8bit Surface
get_palette_at(...)
Surface.get_palette_at(index): return RGB
get the color for a single entry in a palette
get_parent(...)
Surface.get_parent(): return Surface
find the parent of a subsurface
get_pitch(...)
Surface.get_pitch(): return int
get the number of bytes used per Surface row
get_rect(...)
Surface.get_rect(**kwargs): return Rect
get the rectangular area of the Surface
get_shifts(...)
Surface.get_shifts(): return (R, G, B, A)
the bit shifts needed to convert between a color and a mapped integer
get_size(...)
Surface.get_size(): return (width, height)
get the dimensions of the Surface
get_width(...)
Surface.get_width(): return width
get the width of the Surface
lock(...)
Surface.lock(): return None
lock the Surface memory for pixel access
map_rgb(...)
Surface.map_rgb(Color): return mapped_int
convert a color into a mapped color value
mustlock(...)
Surface.mustlock(): return bool
test if the Surface requires locking
scroll(...)
Surface.scroll(dx=0, dy=0): return None
Shift the surface image in place
set_alpha(...)
Surface.set_alpha(value, flags=0): return None
Surface.set_alpha(None): return None
set the alpha value for the full Surface image
set_at(...)
Surface.set_at((x, y), Color): return None
set the color value for a single pixel
set_clip(...)
Surface.set_clip(rect): return None
Surface.set_clip(None): return None
set the current clipping area of the Surface
set_colorkey(...)
Surface.set_colorkey(Color, flags=0): return None
Surface.set_colorkey(None): return None
Set the transparent colorkey
set_masks(...)
Surface.set_masks((r,g,b,a)): return None
set the bitmasks needed to convert between a color and a mapped integer
set_palette(...)
Surface.set_palette([RGB, RGB, RGB, ...]): return None
set the color palette for an 8bit Surface
set_palette_at(...)
Surface.set_at(index, RGB): return None
set the color for a single index in an 8bit Surface palette
set_shifts(...)
Surface.get_shifts((r,g,b,a)): return None
sets the bit shifts needed to convert between a color and a mapped integer
subsurface(...)
Surface.subsurface(Rect): return Surface
create a new surface that references its parent
unlock(...)
Surface.unlock(): return None
unlock the Surface memory from pixel access
unmap_rgb(...)
Surface.map_rgb(mapped_int): return Color
convert a mapped integer color value into a Color

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class error(exceptions.RuntimeError)
    
Method resolution order:
error
exceptions.RuntimeError
exceptions.StandardError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.RuntimeError:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.RuntimeError:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
Functions
       
Mask(...)
pygame.Mask((width, height)): return Mask
pygame object for representing 2d bitmasks
get_error(...)
pygame.get_error(): return errorstr
get the current error message
get_sdl_byteorder(...)
pygame.get_sdl_byteorder(): return int
get the byte order of SDL
get_sdl_version(...)
pygame.get_sdl_version(): return major, minor, patch
get the version number of SDL
init(...)
pygame.init(): return (numpass, numfail)
initialize all imported pygame modules
packager_imports()
Some additional things that py2app/py2exe will want to see
quit(...)
pygame.quit(): return None
uninitialize all pygame modules
register_quit(...)
register_quit(callable): return None
register a function to be called when pygame quits
segfault(...)
crash
set_error(...)
pygame.set_error(error_msg): return None
set the current error message
warn_unwanted_files()
Used to warn about unneeded old files.

 
Data
        ACTIVEEVENT = 1
ANYFORMAT = 268435456
ASYNCBLIT = 4
AUDIO_S16 = 32784
AUDIO_S16LSB = 32784
AUDIO_S16MSB = 36880
AUDIO_S16SYS = 32784
AUDIO_S8 = 32776
AUDIO_U16 = 16
AUDIO_U16LSB = 16
AUDIO_U16MSB = 4112
AUDIO_U16SYS = 16
AUDIO_U8 = 8
BIG_ENDIAN = 4321
BLEND_ADD = 1
BLEND_MAX = 5
BLEND_MIN = 4
BLEND_MULT = 3
BLEND_RGBA_ADD = 6
BLEND_RGBA_MAX = 16
BLEND_RGBA_MIN = 9
BLEND_RGBA_MULT = 8
BLEND_RGBA_SUB = 7
BLEND_RGB_ADD = 1
BLEND_RGB_MAX = 5
BLEND_RGB_MIN = 4
BLEND_RGB_MULT = 3
BLEND_RGB_SUB = 2
BLEND_SUB = 2
BUTTON_X1 = 6
BUTTON_X2 = 7
DOUBLEBUF = 1073741824
FULLSCREEN = -2147483648
GL_ACCELERATED_VISUAL = 15
GL_ACCUM_ALPHA_SIZE = 11
GL_ACCUM_BLUE_SIZE = 10
GL_ACCUM_GREEN_SIZE = 9
GL_ACCUM_RED_SIZE = 8
GL_ALPHA_SIZE = 3
GL_BLUE_SIZE = 2
GL_BUFFER_SIZE = 4
GL_DEPTH_SIZE = 6
GL_DOUBLEBUFFER = 5
GL_GREEN_SIZE = 1
GL_MULTISAMPLEBUFFERS = 13
GL_MULTISAMPLESAMPLES = 14
GL_RED_SIZE = 0
GL_STENCIL_SIZE = 7
GL_STEREO = 12
GL_SWAP_CONTROL = 16
HAT_CENTERED = 0
HAT_DOWN = 4
HAT_LEFT = 8
HAT_LEFTDOWN = 12
HAT_LEFTUP = 9
HAT_RIGHT = 2
HAT_RIGHTDOWN = 6
HAT_RIGHTUP = 3
HAT_UP = 1
HWACCEL = 256
HWPALETTE = 536870912
HWSURFACE = 1
IYUV_OVERLAY = 1448433993
JOYAXISMOTION = 7
JOYBALLMOTION = 8
JOYBUTTONDOWN = 10
JOYBUTTONUP = 11
JOYHATMOTION = 9
KEYDOWN = 2
KEYUP = 3
KMOD_ALT = 768
KMOD_CAPS = 8192
KMOD_CTRL = 192
KMOD_LALT = 256
KMOD_LCTRL = 64
KMOD_LMETA = 1024
KMOD_LSHIFT = 1
KMOD_META = 3072
KMOD_MODE = 16384
KMOD_NONE = 0
KMOD_NUM = 4096
KMOD_RALT = 512
KMOD_RCTRL = 128
KMOD_RMETA = 2048
KMOD_RSHIFT = 2
KMOD_SHIFT = 3
K_0 = 48
K_1 = 49
K_2 = 50
K_3 = 51
K_4 = 52
K_5 = 53
K_6 = 54
K_7 = 55
K_8 = 56
K_9 = 57
K_AMPERSAND = 38
K_ASTERISK = 42
K_AT = 64
K_BACKQUOTE = 96
K_BACKSLASH = 92
K_BACKSPACE = 8
K_BREAK = 318
K_CAPSLOCK = 301
K_CARET = 94
K_CLEAR = 12
K_COLON = 58
K_COMMA = 44
K_DELETE = 127
K_DOLLAR = 36
K_DOWN = 274
K_END = 279
K_EQUALS = 61
K_ESCAPE = 27
K_EURO = 321
K_EXCLAIM = 33
K_F1 = 282
K_F10 = 291
K_F11 = 292
K_F12 = 293
K_F13 = 294
K_F14 = 295
K_F15 = 296
K_F2 = 283
K_F3 = 284
K_F4 = 285
K_F5 = 286
K_F6 = 287
K_F7 = 288
K_F8 = 289
K_F9 = 290
K_FIRST = 0
K_GREATER = 62
K_HASH = 35
K_HELP = 315
K_HOME = 278
K_INSERT = 277
K_KP0 = 256
K_KP1 = 257
K_KP2 = 258
K_KP3 = 259
K_KP4 = 260
K_KP5 = 261
K_KP6 = 262
K_KP7 = 263
K_KP8 = 264
K_KP9 = 265
K_KP_DIVIDE = 267
K_KP_ENTER = 271
K_KP_EQUALS = 272
K_KP_MINUS = 269
K_KP_MULTIPLY = 268
K_KP_PERIOD = 266
K_KP_PLUS = 270
K_LALT = 308
K_LAST = 323
K_LCTRL = 306
K_LEFT = 276
K_LEFTBRACKET = 91
K_LEFTPAREN = 40
K_LESS = 60
K_LMETA = 310
K_LSHIFT = 304
K_LSUPER = 311
K_MENU = 319
K_MINUS = 45
K_MODE = 313
K_NUMLOCK = 300
K_PAGEDOWN = 281
K_PAGEUP = 280
K_PAUSE = 19
K_PERIOD = 46
K_PLUS = 43
K_POWER = 320
K_PRINT = 316
K_QUESTION = 63
K_QUOTE = 39
K_QUOTEDBL = 34
K_RALT = 307
K_RCTRL = 305
K_RETURN = 13
K_RIGHT = 275
K_RIGHTBRACKET = 93
K_RIGHTPAREN = 41
K_RMETA = 309
K_RSHIFT = 303
K_RSUPER = 312
K_SCROLLOCK = 302
K_SEMICOLON = 59
K_SLASH = 47
K_SPACE = 32
K_SYSREQ = 317
K_TAB = 9
K_UNDERSCORE = 95
K_UNKNOWN = 0
K_UP = 273
K_a = 97
K_b = 98
K_c = 99
K_d = 100
K_e = 101
K_f = 102
K_g = 103
K_h = 104
K_i = 105
K_j = 106
K_k = 107
K_l = 108
K_m = 109
K_n = 110
K_o = 111
K_p = 112
K_q = 113
K_r = 114
K_s = 115
K_t = 116
K_u = 117
K_v = 118
K_w = 119
K_x = 120
K_y = 121
K_z = 122
LIL_ENDIAN = 1234
MOUSEBUTTONDOWN = 5
MOUSEBUTTONUP = 6
MOUSEMOTION = 4
NOEVENT = 0
NOFRAME = 32
NUMEVENTS = 32
OPENGL = 2
OPENGLBLIT = 10
PREALLOC = 16777216
QUIT = 12
RESIZABLE = 16
RLEACCEL = 16384
RLEACCELOK = 8192
SCRAP_BMP = 'image/bmp'
SCRAP_CLIPBOARD = 0
SCRAP_PBM = 'image/pbm'
SCRAP_PPM = 'image/ppm'
SCRAP_SELECTION = 1
SCRAP_TEXT = 'text/plain'
SRCALPHA = 65536
SRCCOLORKEY = 4096
SWSURFACE = 0
SYSWMEVENT = 13
TIMER_RESOLUTION = 10
USEREVENT = 24
UYVY_OVERLAY = 1498831189
VIDEOEXPOSE = 17
VIDEORESIZE = 16
YUY2_OVERLAY = 844715353
YV12_OVERLAY = 842094169
YVYU_OVERLAY = 1431918169
__version__ = '1.9.1release'
ver = '1.9.1release'
vernum = (1, 9, 1)