Pygame Window Closing Automatically

  1. Pygame Python Game
  2. Pygame Window Code
  3. Pygame Window Closing Automatically Start
  4. Pygame Quit
  5. Pygame Window Not Closing

Hello, I am relatively new with Python and Pygame, however, I am an experienced PHPer, so programming isn't something new to me. My problem is this: I got Python 2.4 installed and Pygame 1.6 for Python 2.4 installed. I know Pygame works because I can make calls to the Pygame modules.

Closing

My problem is, when I try to open a window through Pygame using

Pygame Python Game

I'm new to programming, python and pygame. This is some code I wrote to draw random colored rectangles on an 800 x 600 canvas. It does what I expected it to do but becomes unresponsive if I click anywhere on the window. I am on a 64 bit windows 7 system running 32 bit python 2.7 with the appropriate pygame 1.9.1. A simple pygame tutorial in making the word's simplest video game. Learn how to make a simple pygame window and close it. It would be ideal if you. This pygame tutorial teaches charatcer movement. How to move a charatcer around the screen using the python module pygame. Everything in Pygame Zero is optional; a blank file is a valid Pygame Zero script! You can quit the game by clicking on the window’s close button or by pressing Ctrl-Q (⌘-Q on Mac). If the game stops responding for any reason, you may need to terminate it by pressing Ctrl-C in your Terminal window.

it opens a window, but then lags, and finally crashes and I have to use the oh-so-lovable Crtl-Alt-Del to kill it. I can't figure this out. If I use Tkinter to open windows, they open and execute just fine. The problem only persists with Pygame. Any help at all would be appreciated.

Pygame Window Closing Automatically
  • 2 Contributors
  • forum3 Replies
  • 347 Views
  • 9 Hours Discussion Span
  • commentLatest PostLatest Postby vegaseat

Recommended Answers

The mode you are trying to set in ...

Pygame Window Code

is really not very close to any recognizable mode. Pygame does search for the closest possible mode, but may be overtaxed in this case!

PygameJump to Post

Pygame Window Closing Automatically Start

All 3 Replies

Pygame Quit

The mode you are trying to set in ...

Pygame Window Not Closing

is really not very close to any recognizable mode. Pygame does search for the closest possible mode, but may be overtaxed in this case!