Python Forum

Full Version: How to run animations in background with tkinter?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello! I am making a tkinter app and I want to make an animation, for example, a character walking (by displaying each frame individually). But when I do this, the rest of the commands stop executing and the only thing that happens is the animation, but I want to execute other commands while the animation is running. There must be a better way to animate stuff in tkinter!?
How are you doing the animation? Do you have a while loop and/or sleep blocking the gui mainloop.
See the following forum thread on using tkinter's after
https://python-forum.io/Thread-Tkinter-H...ng-the-gui