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.locals
to 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.
- The
pygame.display
module contains flags likeHWSURFACE
used bypygame.display.set_mode()
.- The
pygame.event
module contains the various event types.- The
pygame.key
module lists the keyboard constants and modifiers (K_
* andMOD_
*) relating to thekey
andmod
attributes of theKEYDOWN
andKEYUP
events.- The
pygame.time
module definesTIMER_RESOLUTION
.
© Pygame Developers.
Licensed under the GNU LGPL License version 2.1.
https://www.pygame.org/docs/ref/locals.html