Re: [pygame] font initialization error

2007-10-11 Thread Kyle
Did you initialize the font system with pygame.font.init() or just pygame.init() Fonts should work after that. On 10/11/07, AlgoMantra [EMAIL PROTECTED] wrote: Hi All, I keep getting an error from the myfont = pygame.font.SysFont(Vera, 12) line saying Error: Font not Initialized. Could

Re: [pygame] font initialization error

2007-10-11 Thread AlgoMantra
Thanks Kyle. I had not initialized the font system. It works after I included pygame.font.init() I have a couple of other issues with the code I'm working on right now. 1. if event.type == pygame.QUIT: sys.exit() I'm using this to close the Pygame window, but it always sort of hangs and

Re: [pygame] font initialization error

2007-10-11 Thread Peter Shinners
1. if event.type == pygame.QUIT: sys.exit() You may be better off also telling pygame to shutdown. This won't help much though if you are running pygame programs from single process IDEs. if event.type == pygame.QUIT: pygame.quit() sys.exit()

Re: [pygame] Re: error on mac

2007-10-11 Thread flyaflya
I find it's because of the mixer, I use mixer.music to play midi, it seems pygame not support midi well in Mac, now I converted midi to ogg, it worked. It's very strange the error just happen in fullscreen mode when blit a surface. On 10/11/07, Ian Mallett [EMAIL PROTECTED] wrote: I'm not

Re: [pygame] pygamefont problem

2007-10-11 Thread Ian Mallett
A basic look-over seems OK, but I can't find where your font code is? Am I missing something obvious? Also, OpenGL.GLUT is archaic :-) Ian

RE: [pygame] pygame.init before pygame.mixer.init?

2007-10-11 Thread Clare Richardson
I did a little more testing: OS: Windows XP Pygame: I installed v1.7.1 for Win32 and Python 2.5 (http://www.pygame.org/ftp/pygame-1.7.1release.win32-py2.5.exe) I've reproduced the problem on one other WinXP machine with the same Pygame release, but the problem doesn't occur on my WinXP machine

Re: [pygame] font initialization error

2007-10-11 Thread Ian Mallett
On 10/11/07, AlgoMantra [EMAIL PROTECTED] wrote: I'm using this to close the Pygame window, but it always sort of hangs and then a pop up saying this program is not responding. pythonw.exe nonresponsive etc. Why is it this way? If you open with edit with IDLE and use F5, the program will crash

Re: [pygame] Re: error on mac

2007-10-11 Thread James Paige
On Thu, Oct 11, 2007 at 12:11:30PM -0700, Ian Mallett wrote: On 10/11/07, flyaflya [EMAIL PROTECTED] wrote: I find it's because of the mixer, I use mixer.music to play midi, it seems pygame not support midi well in Mac, now I converted midi to ogg, it worked. Well, for one thing, midi

Re: [pygame] pygame.init before pygame.mixer.init?

2007-10-11 Thread RR4CLB
Hi Clare, I still think it is the same problem as before. The get_busy is only busy when the file is playing. You have delayed it to allow the file to Queue in and that has fixed it. If your hard drive is slow that would cause it. Most things on the screen will not become active until the

[pygame] BUG: load_xbm won't take 1 argument

2007-10-11 Thread inhahe
my OS is Windows XP SP2 my Python version is 2.5 my pygame version is '1.7.1release' I get this error when trying to load an xbm file: pygame.cursors.load_xbm(windowsno.xbm) TypeError: load_xbm() takes exactly 2 arguments (1 given) i also tried pygame.cursors.load_xbm(windowsno.xbm, None)

[pygame] cursors strings should have hotspot and size info

2007-10-11 Thread inhahe
It would be nice if * pygame.cursors.thickarrow_strings * pygame.cursors.sizer_x_strings * pygame.cursors.sizer_y_strings * pygame.cursors.sizer_xy_strings came with hotspot and size info. especially hotspot.

Re: [pygame] pygame.init before pygame.mixer.init?

2007-10-11 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 RR4CLB wrote: Hi Clare, I still think it is the same problem as before. The get_busy is only busy when the file is playing. You have delayed it to allow the file to Queue in and that has fixed it. If your hard drive is slow that would

Re: [pygame] pygamefont problem

2007-10-11 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 vwf wrote: I think I use old code, but I don't know what is wrong. I include a small programme that works, but displays incorrectly (it is a QD cut from my real programme). Any suggestions, or a pointer to an example I can use? Hi, I've only

Re: [pygame] Re: error on mac

2007-10-11 Thread Ian Mallett
Ha ha ha! Opps...

Re: [pygame] pygamefont problem

2007-10-11 Thread Ian Mallett
My way of doing it is to get an image of all the characters in a font, then make a bunch of textures for each character you want, then draw them at the near clipping plane.

Re: [pygame] Re: error on mac

2007-10-11 Thread flyaflya
Yes, I use pygame.mixer.music to play midi, It work fine in windows, but make program crash in mac after playing a while. Maybe the pygame I used has different versions in windows and mac, I'm not care of this now, I will just use ogg in my game from now, it seem has been best supported. On

Re: [pygame] pygame.init before pygame.mixer.init?

2007-10-11 Thread RR4CLB
# Import the necessary ocempgui parts. from ocempgui.object import ActionListener from ocempgui.widgets import * from ocempgui.widgets.Constants import * from pygame.locals import * import os.path import sys import pygame.mixer, pygame.time #, pygame.key # ALL GLOBAL VARIABLES ARE IN CAPS!

Re: [pygame] Re: error on mac

2007-10-11 Thread Ian Mallett
Me too, .ogg is smaller. Ian