Posted 14 December 2011 - 11:34 PM
hell0 everyone,i am ruuning a program from headfirst programming using pygem.....
i downloaded pygame-1.9.2a0.win32-py2.7.msi 6.4MB and after installing i get two folder one is lib and another one is include after that i copied the two folder in c:\python\32\lib
my pygem is installed in this location
now my piece of code is:
from tkinter import *
app = Tk()
app.title("Head First Mix")
sound_file = "Sototar Bilasita.wav"
mixer = pygame.mixer
track.play(loops = -1)
track = mixer.Sound(sound_file)
start_button = Button(app, command = track_start, text = "Start")
start_button.pack(side = LEFT)
stop_button = Button(app, command = track_stop, text = "Stop")
stop_button.pack(side = RIGHT)
and i am getting this error ehile running....
Traceback (most recent call last):
File "C:\Python32\p2\mixer.pyw", line 2, in <module>
ImportError: No module named pygame.mixer