pygame.mixer.load not working
Diez B. Roggisch
deets at nospam.web.de
Sun May 4 17:27:28 EDT 2008
globalrev schrieb:
> import pygame
>
> pygame.mixer.music.load(example1.mp3)
> pygame.mixer.music.play(loops=1, start=0.0)
>
>
> Traceback (most recent call last):
> File "C:\Python25\myPrograms\pygameProgs\musicexp.py", line 3, in
> <module>
> pygame.mixer.music.load(example1.mp3)
> NameError: name 'example1' is not defined
>
> example1 is in the same directory as the script
http://docs.python.org/tut/node5.html#SECTION005120000000000000000
Diez
More information about the Python-list
mailing list