-
pygame.locals - pygame constants
This module contains various constants used by pygame. Its contents are automatically placed in the pygame module namespace. However, an application can use
pygame.localsto include only the pygame constants with afrom pygame.locals import *.Detailed descriptions of the various constants can be found throughout the pygame-ce documentation. Here are the locations of some of them.
The
pygame.displaymodule contains flags likeFULLSCREENused bypygame.display.set_mode().The
pygame.eventpygame module for interacting with events and queues module contains the various event types.The
pygame.keypygame module to work with the keyboard module lists the keyboard constants and modifiers (K_* andMOD_*) relating to thekeyandmodattributes of theKEYDOWNandKEYUPevents.The
pygame.timemodule definesTIMER_RESOLUTION.
Edit on GitHub