sorry about my post on pygame, but i'm having more trouble. frist off im ending the simple program that opens a window with
if event.type == QUIT:
raise SystemExit
That makes a window pop up asking me if i want to quit. Is there another way to exit the window?

I also figured that be able to toggle to fullscreen would help when making a game. I'll do something like
elif event.type == KEYDOWN and event.key == K_ESCAPE:
pygame.display.toggle_fullscreen()
and nothing happens. I havent had much time to look this up.
Thanks

To quit your game try something like ...

pygame.quit()

This will clean things up before quitting.
I know sys.exit() works, but you have to import sys.

On your second problem I can only guess. You may need to update your screen with a ...

pygame.display.flip()
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.