I want to wait the song to finish after it finishes, I want to call another function
How do I do that in wxpython
After Long time searching I found nothig as such.
Then I tried to catch EVT_MEDIA_FINISHED by bind as shown belo
And the function below for modifying filename and call play
def onCheck_loop(self, path): #Loads file and calls play function self.path = path.strip() if not self.player.Load(path): wx.MessageBox("Unable to Play this file, it is in the wrong format") else: self.SetTitle("Now Playing %s" %(self.path,)) time.sleep(10) self.onPlay(wx.media.EVT_MEDIA_LOADED) def onFinished_playing(self, evt): print "Finished, starting next track" time.sleep(10) self.onSetPath_loop() #detects finished song and calls another function to Load file #play it def onPlay(self, evt): self.player.Play() self.slider.SetRange(0, self.player.Length()) self.player.SetVolume(0.404459081855)
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.
hi i am using vb.net multidimensional arrays and i am getting the nearest or closest number i just want to ask if my code was correct or not ? for example i have an input of 13000 and nearest number should be on col 6 can you please help me ...
I am developing a simple job card creator application with VB.net 2012, using Access 2010 as database.
The code I have generated to write data from a datagridview to the database table is successfully saving the data, but with an error "Parameter @name has no default value". The ...
write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Amount invested in business
-Amount given to other business partners as loan
-Amount payable to others