RSS Forums RSS
Please support our Python advertiser: Programming Forums
Views: 2092 | Replies: 3
Reply
Join Date: Jul 2005
Posts: 2
Reputation: Flinch is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Flinch Flinch is offline Offline
Newbie Poster

Help Pygame crashing

  #1  
Jul 13th, 2005
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
screen = pygame.display.set_mode((468, 60))
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2004
Posts: 2,548
Reputation: vegaseat will become famous soon enough vegaseat will become famous soon enough 
Rep Power: 11
Solved Threads: 178
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Solution Re: Pygame crashing

  #2  
Jul 13th, 2005
The mode you are trying to set in ...
screen = pygame.display.set_mode((468, 60))
is really not very close to any recognizable mode. Pygame does search for the closest possible mode, but may be overtaxed in this case!
May 'the Google' be with you!
Reply With Quote  
Join Date: Jul 2005
Posts: 2
Reputation: Flinch is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Flinch Flinch is offline Offline
Newbie Poster

Re: Pygame crashing

  #3  
Jul 13th, 2005
So I try this:
>>> 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?
Reply With Quote  
Join Date: Oct 2004
Posts: 2,548
Reputation: vegaseat will become famous soon enough vegaseat will become famous soon enough 
Rep Power: 11
Solved Threads: 178
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Solution Re: Pygame crashing

  #4  
Jul 13th, 2005
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.
May 'the Google' be with you!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:43 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC