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)
Isn't it about time forums rewarded their contributors?
Contribute to this discussion and earn rewards points that can be cashed out for dollars.
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.
This is the result of previous question answered :
code for the listbox - datagridview interaction
At the top of the code ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Private Sub btn_addline_Click(ByVal ...