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
  My Background Image Is Not Appearing (Python Tkinter) HailyMary 2 3,975 Mar-14-2023, 06:13 PM
Last Post: deanhystad
  [Tkinter] Background inactivity timer when tkinter window is not active DBox 4 2,862 Apr-16-2022, 04:04 PM
Last Post: DBox
Question [Tkinter] Can I set background color for each item in tkinter Combobox? water 1 5,055 Dec-10-2020, 07:48 PM
Last Post: Larz60+
Photo Tkinter TEXT background image _ShevaKadu 5 7,650 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  Tkinter - How can I remove the background borders from ttk.Button? TurboC 4 16,770 Oct-18-2020, 10:58 AM
Last Post: TurboC
  Restoring Tkinter widget background to original color pythonprogrammer 1 2,911 Dec-16-2019, 04:59 AM
Last Post: woooee
  Make Label Text background (default color) transparent using tkinter in python barry76 1 23,478 Nov-28-2019, 10:19 AM
Last Post: Larz60+
  Unable to put background image on Tkinter Frame jenkins43 2 8,706 Nov-27-2019, 11:38 AM
Last Post: jenkins43
  set button background with image of window background gray 3 14,354 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