[Tutor] python sound and repeat using snack
mike re-v
mrmrmr50 at yahoo.com
Sat Nov 8 20:18:08 EST 2003
I'd like to get the following code to repeat
Now it is playing both instances at the same time
the range variable print then I hear the sound
What I expected the code to do is play each 4x in
sequence. Any ideas?
#!/usr/bin/python
from Tkinter import *
root = Tk()
import tkSnack
tkSnack.initializeSnack(root)
mysound = tkSnack.Sound()
mysound1 = tkSnack.Sound()
mysound.read('/home/re-v/clm/lion2.wav')
mysound1.read('/home/re-v/clm/crow2.wav')
a = [1,2,3,4]
for x in a:
print x
mysound.play()
b = [1,2,3,4]
for y in b:
print y
mysound1.play()
root.mainloop()
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
More information about the Tutor
mailing list