title: Utilising the pygame.mixer.music.get_endevent()
body: <p>I want a <code>tkinter</code> label to show nothing when a sound effect has finished.</p>
  
  <p>I've been researching the www on how to create/initialise/catch the end of music event with no luck.</p>
  
  <pre><code>def play_btn():
  
      if mixer.music.get_busy():
  
           mixer.music.fadeout(1000)
  
      snd_fyl.set(snd_list.get(ACTIVE))
      mixer.music.load(snd_dir+"/"+snd_list.get(ACTIVE)+"mp3")
      mixer.music.play()
  
  def stop_btn():
  
      mixer.music.stop()
  
      clear_label()
  
  def clear_label():
  
      snd_fyl.set("")
  
  snd_lbl1 = LabelFrame(MainWindow, text="Sound effect playing", labelanchor=N)
  
  
  snd_playing_lbl = Label(snd_lbl1, width=40, textvariable=snd_fyl)
  </code></pre>
  
  <hr>
  
  <p>Obviously play_btn function plays a sound effect from a list.</p>
  
  <p>The <code>stop_btn</code> function prematurely halts the sound effect and clears the label.</p>
  
  <p>The <code>clear_label</code> function has been created in readiness for the <code>end_of_song</code> event</p>