OK, that makes it work.  Thanks everybody!

On 6/30/07, Kamilche <[EMAIL PROTECTED]> wrote:

Ian Mallett wrote:
> By code I mean any program that works otherwise, by it crashes I mean I
> have to quit using the taskmanager and endtask, and by how I quit I mean
>
> keystate = pygame.key.get_pressed()
> for event in pygame.event.get():
>   if event.type == pygame.QUIT or keystate[K_ESCAPE]:
>     sys.exit()
>

You should definitely 'pygame.quit()' before you quit the program.

Reply via email to