By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,696 Members | 1,462 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,696 IT Pros & Developers. It's quick & easy.

pygame.mixer.load not working

P: n/a
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.p y", 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
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.p y", 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.htm...00000000000000

Diez
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.