Here's my situation. I have two tkinter buttons:
Play Button: plays a sound
Stop Button: to stop the sound during play
Code is as follows:
def Play(self):
//plays a file with pygame module
def Stop(self):
//Stop using pygame stop
Button( root, text ='Play', command= Play).pack()
Button( root, text ='Stop', command= Stop).pack()
The issue is that, when I click the 'Play' button, it stays pressed until it
completes playing the sound, freezing the entire program, not allowing me to
press 'stop' button during that time.
How do i prevent the program from freezing while the play is in progress to
allow me to do other things like stop?
i tried a suggestion proposed here, but it does not work.
Any ideas would be greatly appreciated :)
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss