pygame  
PyGame
Documentation
||  Home  ||  Help Contents  ||
 
|| CD || Channel || Font || Joystick || Rect || Sound || Surface ||
|| pygame || cdrom || constants || display || event || font || image ||
|| joystick || key || mixer || mixer_music || mouse || surfarray || time ||

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 autoinitialization 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.
font - create a new font object
get_error - get current error message
get_grab - query the state of input grabbing
init - autoinitialize all imported pygame modules
new_rect - create a new rectangle
new_surface - Surface
quit - uninitialize all pygame modules
register_quit - routine to call when pyGame quits

font
pygame.font(file, size) -> Font
 
get_error
pygame.get_error() -> errorstring
 
get_grab
pygame.get_grab() -> bool
 
init
pygame.init() -> passed, failed

 
new_rect
pygame.new_rect(rectstyle) -> Rect
 
new_surface
pygame.new_surface(size, [flags, [depth|Surface, [masks]]]) ->
 
quit
pygame.quit() -> none
 
register_quit
pygame.register_quit(callback) -> None