Python Forum
[Tkinter] How to run animations in background with tkinter?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] How to run animations in background with tkinter?
#1
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!?
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [Tkinter] Can I set background color for each item in tkinter Combobox? water 1 2,056 Dec-10-2020, 07:48 PM
Last Post: Larz60+
Photo Tkinter TEXT background image _ShevaKadu 5 3,754 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  Tkinter - How can I remove the background borders from ttk.Button? TurboC 4 7,515 Oct-18-2020, 10:58 AM
Last Post: TurboC
  Restoring Tkinter widget background to original color pythonprogrammer 1 1,536 Dec-16-2019, 04:59 AM
Last Post: woooee
  Make Label Text background (default color) transparent using tkinter in python barry76 1 15,446 Nov-28-2019, 10:19 AM
Last Post: Larz60+
  Unable to put background image on Tkinter Frame jenkins43 2 6,894 Nov-27-2019, 11:38 AM
Last Post: jenkins43
  set button background with image of window background gray 3 12,067 Oct-18-2017, 08:22 AM
Last Post: gray

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020