[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Gracefully exiting with errors



Hello all,

I teach Pygame in 9th grade computer science, and this is our first year using Python/Pygame (we previously used BlitzBasic).

Is there a way to exit your game gracefully when there are errors? We have found with both IDLE and WingIDE that the game hangs, requiring several clicks of the X, etc.

We are ending our game loop with

pygame.quit()
sys.exit()

Am I missing something?

Thanks in advance,
Bob Irving
Porter-Gaud School
Charleston, SC