PDA

View Full Version : PyGame Windows Opens and Then Immediately Closes



cmkrause
December 31st, 2008, 08:20 PM
Just as it sounds, I am opening the window with:

pygame.display.flip()
However whenever I run the script from the commandline like:

python testrastdraw.py
The window draws itself but then immediately closes. Any ideas of what I am doing wrong. Would it help if I uploaded more code?

Thanks!

skullmunky
January 4th, 2009, 04:15 AM
Yes, upload more code.

Make sure you have an application loop of some kind; otherwise it certainly will just open the window and then quit.