Re: [pygame] program crashes

2010-09-24 Thread kevin hayes
Thanks you guys! The workaround seems to do the trick. On Thu, Sep 23, 2010 at 9:13 AM, Lenard Lindstrom le...@telus.net wrote: Hi, Yes, it looks like a bug. But there may be a simple workaround. Try replace line 68 with this: myFont = pygame.font.Font(None, 20) If that fails then

[pygame] program crashes

2010-09-23 Thread kevin hayes
Can someone tell me what to do (or what I need to get) to get this program to work properly? When I run the code(straight out of the book), I get this: Traceback (most recent call last): File /Users/kevinhayes/Desktop/code/ch05/paint.py, line 107, in module main() File

Re: [pygame] program crashes

2010-09-23 Thread Luke Paireepinart
Looks to me like you either found a bug in the core pygame code for loading the system font on Mac or you are calling that method wrong. I checked the method and it seems like you should be able to do what you're doing; it shouldn't find a sysfont called none so it should load the default. If

Re: [pygame] program crashes

2010-09-23 Thread kevin hayes
Well I put part of the traceback into google and apparently some other people have had the same problem: www.pyedpypers.org/forum/viewtopic.php?f=3t=937his solution was to use a different version of python. The thing is that I'm using Python 2.5 just like the book, and I'm using pygame

Re: [pygame] program crashes

2010-09-23 Thread Lenard Lindstrom
Hi, Yes, it looks like a bug. But there may be a simple workaround. Try replace line 68 with this: myFont = pygame.font.Font(None, 20) If that fails then possibly the default font that ships with Pygame is not being installed in the proper place. Lenard Lindstrom On 23/09/10 06:30