| | |
Pygame crashing
Thread Solved |
•
•
Join Date: Jul 2005
Posts: 2
Reputation:
Solved Threads: 0
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.
My problem is, when I try to open a window through Pygame using 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.
My problem is, when I try to open a window through Pygame using
Python Syntax (Toggle Plain Text)
screen = pygame.display.set_mode((468, 60))
The mode you are trying to set in ...
is really not very close to any recognizable mode. Pygame does search for the closest possible mode, but may be overtaxed in this case!
Python Syntax (Toggle Plain Text)
screen = pygame.display.set_mode((468, 60))
May 'the Google' be with you!
•
•
Join Date: Jul 2005
Posts: 2
Reputation:
Solved Threads: 0
So I try this:
And it produces a window which hangs again. Any size crashes. Could it be a problem with my computer maybe?
>>> pygame.display.set_mode((320, 240))
<Surface(320x240x32 SW)>And it produces a window which hangs again. Any size crashes. Could it be a problem with my computer maybe?
What is your computer and operating system? Which version of Python and PyGame have you installed?
Come to think of it, in a 32bit mode the odd sizes shouldn't be a problem, at least on a XP box. How is the result (screen) used?
Follow the trail and make a sub-program of the calls.
It has been my experience that a number of the PyGame examples on the internet are faulty at best. For instance get_rect() is often given a parameter, doesn't like it!
I have done some work with the Simple DirectMedia Layer (SDL) library using C++, not much work with PyGame's SDL.
Come to think of it, in a 32bit mode the odd sizes shouldn't be a problem, at least on a XP box. How is the result (screen) used?
Follow the trail and make a sub-program of the calls.
It has been my experience that a number of the PyGame examples on the internet are faulty at best. For instance get_rect() is often given a parameter, doesn't like it!
I have done some work with the Simple DirectMedia Layer (SDL) library using C++, not much work with PyGame's SDL.
May 'the Google' be with you!
![]() |
Similar Threads
- My PC won't stop crashing!!! (Windows NT / 2000 / XP)
- Program Crashing, security related? (Viruses, Spyware and other Nasties)
- Post Sleep crashing (OS X)
- computer keeps randomly crashing [not crc worm] (Windows NT / 2000 / XP)
- IRQL_ Not_les_than_ equal, blue screens, and windows crashing (Windows NT / 2000 / XP)
Other Threads in the Python Forum
- Previous Thread: Python Tutorial Release 2.4.1
- Next Thread: Tutorials
| Thread Tools | Search this Thread |
alarm ansi app assignment avogadro backend beginner binary bluetooth character cmd customdialog cx-freeze data decimals dictionary directory dynamic error exe file float format function generator getvalue gnu graphics halp heads homework http ideas import input ip itunes java leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer port prime programming progressbar push py2exe pygame python queue random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh statistics string strings sudokusolver sum text thread threading time tlapse tuple tutorial ubuntu unicode url urllib urllib2 variable variables ventrilo vigenere web webservice wikipedia write wxpython xlib






