Next, we will update the position of the seek bar knob and the elapsed play duration, as shown in the following screenshot:
This is nothing but a simple form of Tkinter-based animation.
The most common pattern of animating with Tkinter involves drawing a single frame and then calling the same method using the after method of Tkinter, as follows:
def animate(self): self.draw_frame() self.after(500, self.animate)