Pygame

Latest version: v2.6.1

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 11

2.1.0.dev2

Not secure
This is a quick pre-release, which mainly contains python 2 and SDL 1 removal.

Please kick the wheels? Changes are very minimal over 2.0.3, except for python2 and SDL1 removal.

2.0.14

libsdl is a library pygame is built on. It had a new release after almost 9 months of development. The [2.0.14 release notes](https://discourse.libsdl.org/t/sdl-2-0-14-released/28470) detail things a little bit. More than 9 months worth of effort is a bit much to explain.

There's been a number of bugs fixed we reported in the pygame 2 series. One of which was pygame.display.update() updating the whole screen on windows. So, now 'dirty rect drawing' is faster again on windows. From the list you'll notice a lot of work went into joystick and game controller improvements. Including support for more than 4 xbox controllers at once on windows. But linux, android, mac, and even freebsd got joystick improvements. On linux the Kernel Mode Setting (KMSDRM) video driver was improved a lot. For retro computing fans, the OS2 port got a lot of love. Lots of portability things were improved, like fixing compilation for M1 CPUs, improving the build system. Raspberry Pi support has been improved, as have most video drivers for other platforms.



Xbox One port

Victor Lopez started on an Xbox one port, and has had some success.

> I can confirm Xbox One is able to run the aliens sample with joystick support, audio and sprites, it needs, however, heavy testing.

These are the relevant repositories:
- https://github.com/greentwip/cpython
- https://github.com/greentwip/pygame



pathlib support for image, sound, and font loading.

pathlib is an object oriented way of doing path handling in python 3 (there's also a backport to python2). Before pygame didn't handle these objects in resource loading functions for image and sound loading. Now it does pathlib!

python
path = pathlib.Path('.') / "data" / "house_lo.wav"
sound1 = mixer.Sound(path)


Thanks to ankith26 in 2366 and René Dudfield (illume) in 2387 .


Cursor object API

Starbuck5 worked on a new Cursor object in https://github.com/pygame/pygame/pull/2331

Now you can add system cursors, and color cursors out of surfaces along with the other ones you could draw with ascii art.

python
box = pygame.cursors.Cursor((10,10), pygame.Surface((20,20)))
pg.mouse.set_cursor(box)

pg.mouse.set_cursor(pg.SYSTEM_CURSOR_NO)
pg.mouse.get_cursor()
>>> <Cursor(type: system, constant: SYSTEM_CURSOR_NO)>


Starbuck5
- added a link to patreon on github in 2362
- Improved the README.rst by clarifying, restructuring and improving links. 2396
- Cleaned up 'import pygame._view' in packager_imports by removing it. 2384
- Docs build fixes + home for the Korean tutorial 2420


Starbuck5 added a deprecation warning for mouse.set_system_cursor() 2397 after a long discussion and research with a number of us on if we [should have deprecation warnings anyway?](https://github.com/pygame/pygame/issues/2197).

pygame.draw.rect fixes.

Another project Starbuck5 worked on was fixing some draw.rect issues in PR 2406 found by gummbum and dr0id

This script by dr0id made it much easier to spot the problems.
![2359-ex3](https://user-images.githubusercontent.com/46412508/102708240-5e33b600-4256-11eb-802e-b99182b682bd.PNG)



galexandreg worked on text_input documentation improvements on by default, needed for pygame.TEXTINPUT https://github.com/pygame/pygame/pull/2333

robertpfeiffer made a few fixes to issues with android support. Added K_AC_BACK key constant, fixed data_file pruning and "STRIPPED" install 2311

Ankith ankith26 merged these ones in (whilst also looking at some difficult event posting issues, and cleaning up some image loading code).
- Unittests for event module 2283
- Delete obsolete test/util files 2303
- Documented pygame.image load_basic, load_extended, save_extended. image.c code cleanups. https://github.com/pygame/pygame/pull/2270
- Pathlib support for most pygame functions 2366
- Drop PyLong_FromUnicode, removed in python 3.10 2385
- little music doc fix 2414


mcpalmer1980 Added experimental relative mouse motion support to video.Window in 2392 They have also been using the experimental _sdl2 features quite a lot and coming up with some good improvements and discussions on that (including a new package!).


Dan Lawrence ( MyreMylar ) was on a coding rampage and made a number of improvements:

- mixer.music.get_busy() return False when the music is paused 2295
- Small improvement to the get_locks() test 2281
- Interactive test for touch.get_finger() 2279
- Removed the link to the closed Discord server from GitHub 2296 😢
- pygame.midi pass the output buffersize down to portmidi 2272
- interactive test for set_gamma_ramp() 2278
- Rejiged the alpha blitter path logic to cover issue on mac 2345
- Account for mixer.init()/pre_init() returning more channels than asked 2372
- Fix typo in image.frombuffer() type hint 2383


Many many special Thanks go to

- everyone writing up issues, answering questions, sharing your work, or moderating discussions on different forums.
- reviewers including: illume, siggisv, ankith26, robertpfeiffer, MyreMylar, Starbuck5, pmp-p, and others.
- [patreon.com/pygame](https://patreon.com/pygame) sponsors: Christopher Cacho, Daniel Lawrence, Tommi Sinivuo, Leif Theden, zoldalma, and Bob Johnson. With their help half of the first patreon goal of covering the monthly hosting costs has been covered and a number of pygame tutorials have been made.
- the people supporting pygame financially by buying the pre-release of a [pygame book](https://pygame.itch.io/pygame-book). It's a book by a long time pygame contributor where all funds go towards pygame development.


See ya!


---

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed+merged%3A2020-10-28..2020-12-24+sort%3Acreated-desc+) since we started the pygame 2.0.0.
- [189 Commits since 2.0.0 stable release](https://github.com/pygame/pygame/compare/2.0.0...2.0.1)

2.0.3

Not secure
---

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed+merged%3A2021-10-10..2021-10-31+sort%3Aupdated-desc+) since we started the pygame 2.0.3 series on the 10th of October 2021.
- [114 Commits since 2.0.2 release](https://github.com/pygame/pygame/compare/2.0.2...2.0.3)

2.0.3.dev6

Not secure
run an example game
python3 -m pygame.examples.aliens
run the full test suite
python3 -m pygame.tests


Please report your successes or failures with the release here: https://github.com/pygame/pygame/pull/2807

Or chat to us in the contributing discord, or send an email.

---

* Redirect pygame github image to pygame webpage by MightyJosip in https://github.com/pygame/pygame/pull/2789
* fix syntax error for slightly older versions of libSDL by ckuttruff in https://github.com/pygame/pygame/pull/2798
* Build arm64 mac wheels on CI by ankith26 in https://github.com/pygame/pygame/pull/2782
* Remove travis again by illume in https://github.com/pygame/pygame/pull/2803
* add opus, brotli and bzip2 to dep builds by ankith26 in https://github.com/pygame/pygame/pull/2804
* Fix selection of manylinux to build by illume in https://github.com/pygame/pygame/pull/2805


Thanks all

Thanks to all for reporting issues, doing reviews and helping out in other ways.
Especially issue reporters, wiki editors, discord mods/folk, redditors, patreons, and such like.


---

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed+merged%3A2021-10-24..2021-10-31+sort%3Aupdated-desc+) since we started the pygame 2.0.3.dev6 on the 24th of Oct 2021.
- [16 Commits since 2.0.3.dev4 release](https://github.com/pygame/pygame/compare/2.0.3.dev4...2.0.3.dev6)
- [previous pygame release notes](https://github.com/pygame/pygame/releases)

2.0.3.dev4

Not secure
What's Changed

This release we've been trying to merge in many PRs which have been taking a long time. But some highlights are UCS4 unicode (including emoji) rendering is working, much better error newbie friendly messages for image/resource loading issues, a bunch of difficult bugs were fixed, and python 3.10 wheels for manylinux (which were accidentally forgotten in the 2.0.2 release). There were also some docs improvements for the new Cursor class and get_desktop_sizes function as well as some type improvements for the experimental _sdl2 modules.

We'll have proper detailed release notes for the real 2.0.3 release.

* document get_desktop_sizes by robertpfeiffer in https://github.com/pygame/pygame/pull/2506
* Add sdl2_video types by Starbuck5 in https://github.com/pygame/pygame/pull/2664
* Split GH actions mac builds into 5 matrix builds by ankith26 in https://github.com/pygame/pygame/pull/2773
* Change shield to 2.0.2 by MayuSakurai in https://github.com/pygame/pygame/pull/2784
* update mixer/music docs, unskip mp3 tests by ankith26 in https://github.com/pygame/pygame/pull/2780
* Lots of cleanups by Starbuck5 in https://github.com/pygame/pygame/pull/2779
* Simplify pygame resource loaders by Starbuck5 in https://github.com/pygame/pygame/pull/2695
* Camera improvements by Starbuck5 in https://github.com/pygame/pygame/pull/2772
* Add python 3.10 building in manylinux by illume in https://github.com/pygame/pygame/pull/2787
* More informative FileNotFoundError by Starbuck5 in https://github.com/pygame/pygame/pull/2694
* Added doc for Cursor object by fortwoone in https://github.com/pygame/pygame/pull/2709
* Continue on Cursor docs by illume in https://github.com/pygame/pygame/pull/2788
* Fix issue 2543 segfault in font dealloc after reinit by REW1L in https://github.com/pygame/pygame/pull/2548
* Old API removal in ft_unicode, sdlmain_osx cleanups by ankith26 in https://github.com/pygame/pygame/pull/2433
* BytesIO fix on 32-bit platforms by ankith26 in https://github.com/pygame/pygame/pull/2776
* Remove restriction on rendering 4-byte characters on pygame.font part 2 of 2 by illume in https://github.com/pygame/pygame/pull/2746
* test image: Fix test which relied on removed image by illume in https://github.com/pygame/pygame/pull/2793

New Contributors
* MayuSakurai made their first contribution in https://github.com/pygame/pygame/pull/2784
* fortwoone made their first contribution in https://github.com/pygame/pygame/pull/2709
* REW1L made their first contribution in https://github.com/pygame/pygame/pull/2548

Thanks all

Thanks to all for reporting issues, doing reviews and helping out in other ways.

We have a [pygame 2.0.3 milestone](https://github.com/pygame/pygame/milestone/12) tracking the rest of the work that's most likely going to go into it. The Mac arm64 support had some good progress, and there are some manylinux improvements to help with some linux issues. Hopefully some of that will make it into the release.

Please test, and if you notice anything please raise an issue so we can have a look.
Would be much appreciated :)


---

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed+merged%3A2021-10-16..2021-10-24+sort%3Aupdated-desc+) since we started the pygame 2.0.3.dev4 on the 16th of Oct 2021.
- [76 Commits since 2.0.3.dev2 release](https://github.com/pygame/pygame/compare/2.0.3.dev2...2.0.3.dev4)
- [previous pygame release notes](https://github.com/pygame/pygame/releases)

2.0.3.dev2

2768 mac build improvements by jmroot
2673 Remove redundant python includes, fix compiler warnings on re-exported symbols by ankith26
2762 GH Actions make /usr/local cache for mac deps, greatly speeding up mac CI builds by ankith26
2769 Fix regression in set_timer, old events not removed, by ankith26
2770 Added loops option for mixer.music.queue, by thorhunter1


Thanks to all for reporting issues, doing reviews and helping out in other ways.

We have a [pygame 2.0.3 milestone](https://github.com/pygame/pygame/milestone/12) tracking the rest of the work that's most likely going to go into it.


---

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed+merged%3A2021-10-11..2021-10-16+sort%3Aupdated-desc+) since we started the pygame 2.0.3.dev2 on the 11th of Oct 2021.
- [18 Commits since 2.0.2 release](https://github.com/pygame/pygame/compare/2.0.2...2.0.3.dev2)
- [previous pygame release notes](https://github.com/pygame/pygame/releases)

Page 5 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.