PyGame Logo
PyGame
Documentation
||  Home  ||  Help Contents  ||
 
|| CD || Channel || Font || Joystick || Rect ||
|| Sound || Surface || pygame || cdrom || display ||
|| event || font || image || joystick || key ||
|| mixer || mouse || music || 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.
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
quit - uninitialize all pygame modules
rect - create a new rectangle
register_quit - routine to call when pyGame quits
surface - create a new Surface

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

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