This module contains various constants used by pygame. Its contents are automatically placed in the pygame module namespace. However, an application can use
pygame.locals to include only the pygame constants with a
pygame.locals import *.
Detailed descriptions of the various constants can be found throughout the pygame documentation. Here are the locations of some of them.
pygame.displaymodule contains flags like
pygame.eventmodule contains the various event types.
pygame.keymodule lists the keyboard constants and modifiers (
MOD_*) relating to the
modattributes of the
© Pygame Developers.
Licensed under the GNU LGPL License version 2.1.