Re: [Tkinter-discuss] Button Press Freezes

2013-06-13 Thread mkieverpy
Quaki Gaffar: >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 Greg Ewing: >No, mus

Re: [Tkinter-discuss] Button Press Freezes

2013-05-18 Thread Michael Lange
Hi, On Thu, 16 May 2013 14:08:10 +1200 Greg Ewing wrote: > No, music.play() is not supposed to block. However, I haven't tried to > use it outside the context of a pygame app, so I don't know how it > behaves if there isn't a pygame event loop running. Ok, now I got curious and gave it a try an

Re: [Tkinter-discuss] Button Press Freezes

2013-05-15 Thread Greg Ewing
On 16/05/13 03:49, Michael Lange wrote: I never used pygame myself, so I can only guess that the pygame method you use (pygame.mixer.music.play()?) does not return until the playback is done. No, music.play() is not supposed to block. However, I haven't tried to use it outside the context of a

Re: [Tkinter-discuss] Button Press Freezes

2013-05-15 Thread Michael Lange
Hi, On Wed, 15 May 2013 15:31:32 +0530 Quaki Gaffar wrote: > 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(s