Wonderful and easy. Good work! I modified the pygame.QUIT event, as a break statement will only break the loop, not exit the application, at least it did not do so for me.
josmiley 2012-05-30 21:17
thanks, under windows it is necessary to add pygame.quit() at the end of the code. I always forget it.