pygame   documentation
||  Home  ||  Help Contents  ||
 
|| pygame || cdrom || constants || cursor || display || draw ||
|| event || font || image || joystick || key || mixer ||
|| mixer_music || mouse || movie || sndarray || surfarray || time ||
|| transform ||
 
|| CD || Channel || Clock || Font || Joystick || Movie ||
|| Overlay || Rect || Sound || Surface ||
 
|| color || cursors || sprite ||

pygame

Contains the core routines that are used by the rest of the pygame modules. It's routines are merged directly into the pygame namespace. This mainly includes the auto-initialization init() and quit() routines.
 
There is a small module named 'locals' that also gets merged into this namespace. This contains all the constants needed by pygame. Object constructors also get placed into this namespace, you can call functions like Rect() and Surface() to create objects of that type. As a convenience, you can import the members of pygame.locals directly into your module's namespace with 'from pygame.locals import *'. Most of the pygame examples do this if you'd like to take a look.
Overlay - Create a new video overlay object
Rect - create a new rectangle
Surface - create a new Surface
get_error - get current error message
get_sdl_version - get the version of the linked SDL runtime
init - autoinitialize all imported pygame modules
quit - uninitialize all pygame modules
register_quit - routine to call when pygame quits

Overlay
pygame.Overlay(pixeltype, [width, height]) -> Overlay
 
Rect
pygame.Rect(rectstyle) -> Rect

 
Surface
pygame.Surface(size, [flags, [Surface|depth, [masks]]]) -> Surface
 
get_error
pygame.get_error() -> errorstring
 
get_sdl_version
pygame.get_sdl_version() -> (major, minor, patchlevel)
 
init
pygame.init() -> passed, failed

 
quit
pygame.quit() -> none
 
register_quit
pygame.register_quit(callback) -> None