pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
853 stars 140 forks source link

pygame.display.get/set_window_pos() functions #2815

Closed damusss closed 5 months ago

damusss commented 5 months ago

ATTENTION: i created a whole new branch for this feature, but my old commits for old features are showing aswell! what can i do to avoid this? i'm not the best at git, i might have messed up something

I implemented, added tests and documentation for the new get/set_window_pos ideated by me.

Why?

I got inspired by the other functions in the display module to write the C source, tell me if anything can be changed or if some docs or tests are missing and tell me what do you think of this addition. I tested the functions locally and they work fine