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.display

Contains routines to work with the display. Mainly used for setting the display mode and updating the display surface.
flip - update the display
get_active - get state of display mode
get_caption - get the current title of the window
get_driver - get the current sdl video driver
get_info - get display capabilities and settings
get_init - get status of display module initialization
get_surface - get current display surface
iconify - minimize the display window
init - initialize the display module
list_modes - query all resolutions for requested mode
mode_ok - query a specific display mode
quit - uninitialize the display module
set_caption - changes the title of the window
set_driver - override the default sdl video driver
set_gamma - change the brightness of the display
set_mode - set the display mode
toggle_fullscreen - switch the display fullscreen mode
update - update an area of the display

flip
pygame.display.flip() -> None
 
get_active
pygame.display.get_active() -> bool
 
get_caption
pygame.display.get_caption() -> title, icontitle
 
get_driver
pygame.display.get_driver() -> name
 
get_info
pygame.display.get_info() -> VidInfo
 
get_init
pygame.display.get_init() -> bool
 
get_surface
pygame.display.get_surface() -> Surface
 
iconify
pygame.display.iconify() -> bool
 
init
pygame.display.init() -> None
 
list_modes
pygame.display.list_modes([depth, [flags]]) -> [[x,y],...] | -1
 
mode_ok
pygame.display.mode_ok(size, [flags, [depth]]) -> int
 
quit
pygame.display.quit() -> None
 
set_caption
pygame.display.set_caption(title, [icontitle]) -> None
 
set_driver
pygame.display.set_driver(name) -> None
 
set_gamma
pygame.display.set_gamma(r, [g, b]) -> bool
 
set_mode
pygame.display.set_mode(size, [flags, [depth]]) -> Surface
 
toggle_fullscreen
pygame.display.toggle_fullscreen() -> bool
 
update
pygame.display.update([rectstyle]) -> None