##### pygame-ce documentation

Pygame-ce Home || Help Contents || Reference Index

Most useful stuff: Color | display | draw | event | font | image | key | locals | mixer | mouse | Rect | Surface | time | music | pygame

Advanced stuff: cursors | joystick | mask | sprite | transform | BufferProxy | freetype | gfxdraw | midi | PixelArray | pixelcopy | sndarray | surfarray | math

Other: camera | controller | examples | scrap | system | tests | touch | typing | version | Window

## src_py/version.py

Header file: src_c/include/pygame.h

Version information can be retrieved at compile-time using these macros.

New in pygame 1.9.5.

PG_MAJOR_VERSION

PG_MINOR_VERSION

PG_PATCH_VERSION

PG_VERSIONNUM(MAJOR, MINOR, PATCH)

  Returns an integer representing the given version.

PG_VERSION_ATLEAST(MAJOR, MINOR, PATCH)

  Returns true if the current version is at least equal to the specified version.

Edit on GitHub