-
pygame.locals - pygame constants
This module contains various constants used by pygame. It's contents are automatically placed in the pygame module namespace. However, an application can use
pygame.localspygame constants to include only the pygame constants with a 'frompygame.localspygame constants import *'.Detailed descriptions of the various constants are found throughout the pygame documentation.
pygame.display.set_mode()Initialize a window or screen for display flags likeHWSURFACEare found in the Display section. Event types are explained in the Event section. KeyboardK_constants relating to the key attribute of aKEYDOWNorKEYUPevent are listed in the Key section. Also found there are the variousMOD_key modifiers. Finally,TIMER_RESOLUTIONis defined in Time.