- 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 a
from 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.displaypygame module to control the display window and screen module contains flags like
pygame.display.set_mode()Initialize a window or screen for display.
pygame.eventpygame module for interacting with events and queues module contains the various event types.
pygame.keypygame module to work with the keyboard module lists the keyboard constants and modifiers (
MOD_*) relating to the
modattributes of the
pygame.timepygame module for monitoring time module defines
Edit on GitHub