Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pygame import *
- from Tkinter import *
- import time
- root = Tk()
- root.geometry("1000x200")
- root.title("sampler")
- m=1
- n=1
- mixer.init()
- def play():
- while m=1:
- print 'playing'
- mixer.music.load('audio 1.mp3')
- mixer.music.play()
- time.sleep(n)
- start = Button(root, text="play", command = play)
- start.pack()
- stop = Button(root, text="Stop")
- stop.pack()
- mainloop()
Add Comment
Please, Sign In to add comment