title: Tkinter Video Playlist
body: <p>Trying to build a Playlist of videos using Tkinter.
  At the moment I have an array of mp4, names that will pass into the tkintervideo to load.</p>
  <p>I'm having issues on how to wait for the first video to end in order to go to the second.</p>
  <pre class="lang-py prettyprint-override"><code>root = Tk()    
  playlist = [&quot;New_Year_Champagne.mp4&quot;,&quot;demo.mp4&quot;,&quot;car.mp4&quot;]
  videoplayer = TkinterVideo(master=root, scaled=True, pre_load=False)
  for item in playlist: 
      has_video_ended = False
  
      videoplayer.load(item)
      videoplayer.pack(expand=True, fill=&quot;both&quot;)
      videoplayer.play() # play the video
      videoplayer.bind(&quot;&lt;&lt;Ended&gt;&gt;&quot;, video_ended )
      
      root.update()
        
  root.mainloop()
  </code></pre>
  <p>As it is, after doing the root.update() it goes to the next iteration of the playlist.</p>
  <p>What else can I try?</p>