NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #2337 most downloaded on PyPI
pyglet is a cross-platform games and multimedia package.
Latest stable
2.1.19
Last release 9 days ago
09 Nov 2026
Ships fairly regularly
a new release about every 4 weeks
Most releases are documented
notes for 44 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
17 years old
164 releases · first in 2010
Drag across the ruler to compare, or tap a release to open it.
Avoid WMFDecoder crash when mixing pyglet with other tookits.
pyglet.shapes module for creating simple 2D shapes.Fix memory leak caused by not freeing stale buffers and textures.
Fix WMF decoder for pre-Windows 8 systems.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
New "file_drops" Window argument to allow drag and drop of files. This is complimented by a new Window.on_file_drop event, which returns the mouse pos
Window.on_file_drop event, which returns the mouse position and file path.Removed global dubug function access in __del__ methods to prevent smooth shutdown.
Bugfix and Maintenance release
Nothing published for this version
Explicitly set Window size in game example.
Bugfix and small improvement release
Bugfix and small improvement release
FFmpeg: fix an occasional crash during seek operation.
Allow creation of non-power-of-two compressed Textures.
AttributeErrors. (#87)Desktop Window Manager composition for smoother rendering.conda-installed FFmpeg on macOS (#92)Fix PNG encoder saving upside-down images due to incorrect pitch.
Documentation has been rebased on the standard RTD theme.
MouseStateHandler convenience class.Fix incorrect glXSwapIntervalEXT arguments for Xlib contexts.
Fix incorrect glXSwapIntervalEXT arguments for Xlib contexts.
Fix crash due to inconsistent API when changing Label or HTMLLabel color.
Removed broken projects from /contrib
Bugfix release. Bugfixes -------- - #256 Fix aliases for Window.get_viewport_size/get_framebuffer_size.
Bugfix release.
Major release adding several new features and removing some long deprecated methods and attributes. There are also many small bugfixes, and documentat…
Major release adding several new features and removing some long deprecated methods and attributes. There are also many small bugfixes, and documentation corrections. Thanks to everyone who submitted a pull request or contributed towards this release!
Of special note, is that the 1.4 release will be the last to support Python 2. It will also be the last release to support Legacy OpenGL (2.x). Future pyglet releases will be Python 3 only, and will require at least OpenGL 3 support. If you are using pyglet on legacy systems, don't worry. The 1.4 branch will remain available for download. Bugfixes will be backported as long as someone is willing to do so, but new features on the 1.4 branch are unlikely.
sprite.set_position. Set the X, Y coordinates via sprite.position instead.next on the Player class. This has been replaced by next_source.clock.ClockDisplay. Use window.FPSDisplay instead.clock.test_clock. This relied on deprecated behavior, and is superseded by unit tests.font.text. Use the text module instead for displaying text.window.Platform API. Use canvas.get_display or canvas.Display instead.font.Win32Font class. This has been replaced by font.GDIPlusFont, which was already default.
The class still remains, as it's subclassed by font.GDIPlusFont. The two should be merged.window.event.WindowExitHandler. This functionality is now handled by the Window itself.image.ImageData.data properties. Use the get_data and set_data methods instead.image.ImageData.image_data property. Use the get_image_data method instead.image.ImageData.texture property. Use the get_texture method instead.image.ImageData.mipmapped_texture property. Use the get_mipmapped_texture method instead.image.ImageData.texture_sequence property. Use the get_texture_sequence method instead.image.Texture.delete method. Textures are automatically released through GC.image.Texture.image_data property. Use the get_image_data method instead.wave module. This is slightly more
forgiving when loading slightly non-compliant files.pyglet.image.Texture.default_min_filter = GL_LINEAR
pyglet.image.Texture.default_mag_filter = GL_LINEARpyglet.resource module now supports loading of multi-volume Zip files.Window.activate to prevent crash if window is not yet created.past.basestring.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Bugfix release. Bugfixes -------- - #158 Fix mouse events in mouse exclusive mode on Windows. - #105 Crashes in PulseAudio; - #163 Workaround for runn
Bugfix release.
The rest of this release is focussed on code quality and test coverage. There are no API breaking changes, and only a few minor additions. Dozens of b…
This major release takes Python 3 support to the next level. The entire codebase is now compatible with both Python 2 and Python 3 without the need for 2to3. This should make it easier to develop pyglet and pyglet apps for both Python versions.
The rest of this release is focussed on code quality and test coverage. There are no API breaking changes, and only a few minor additions. Dozens of bugs have been fixed, and the codebase is in a better state for future improvement and maintainability.
scale_x and scale_y attributes, allowing for aspect ratio changes. The
existing scale attribute sets the overall scaling, and functions as before.update method which allows simultaneous changing of position, scale, and
rotation. This reduces some overhead when changing multiple attributes at once.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Windows: Fix issue where ALT key causes app to hang.
Minor bugfix release.
Bugfixes:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Minor bugfix release. Includes documentation updates for deprecated code.
Minor bugfix release. Includes documentation updates for deprecated code.
Minor bugfix release. Fixes some issues on Linux.
Minor bugfix release. Fixes some issues on Linux.
The major 1.2 release brings pyglet to Python 3. pyglet now also runs on 64-bit operating systems Linux, Windows and OS X. The OS X layer has switched
The major 1.2 release brings pyglet to Python 3. pyglet now also runs on 64-bit operating systems Linux, Windows and OS X. The OS X layer has switched to Cocoa.
Backwards-incompatible API changes:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.