pygame.mixer.load not working

globalrev skanemupp at yahoo.se
Sun May 4 16:59:08 EDT 2008


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



More information about the Python-list mailing list