Python Forum
[PyGame] PyGame does not close when I press the close button
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] PyGame does not close when I press the close button
#7
Sorry didnt see it there. If your going to put the event loop in a function then you need to return bValue to update b_is_running value. A better method would be to use a control class and just pass that same value around as an attribute to avoid function parameters all over the place.
Recommended Tutorials:
Reply


Messages In This Thread
RE: PyGame does not close when I press the close button - by metulburr - May-25-2018, 09:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cant make a door automatically close a few seconds after i open it in pygame cooImanreebro 2 2,279 Dec-15-2020, 08:40 PM
Last Post: michael1789
  PyGame: detecting key press, but not key qrani 2 4,015 Sep-28-2018, 11:08 PM
Last Post: qrani

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020