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
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
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()
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
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
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
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
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
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
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)
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.
-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
-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
Ha ha ha! Opps...
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.
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
# 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!
Me too, .ogg is smaller.
Ian
18 matches
Mail list logo