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
939 stars 155 forks source link

added example on how Window behaves with WINDOWCLOSE and QUIT events #3115

Closed MrValdez closed 1 month ago

MrValdez commented 2 months ago

I've noticed that the new Window API have different behavior with events. I've updated the documentation to reflect this.

ankith26 commented 2 months ago

While building the html docs (with py -m buildconfig docs) I am getting the following warnings:

/[my_path]/pygame-ce/docs/reST/ref/window.rst:49: ERROR: Unexpected indentation.
/[my_path]/pygame-ce/docs/reST/ref/window.rst:65: ERROR: Unexpected indentation.

The .. code-block:: python part must not be indented relative to the text, and the python code should be intended only once. Also I believe there should be one empty line before according to the rst spec.