Python Forum
[Tkinter] Tk window not displaying until loop has completed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Tk window not displaying until loop has completed
#7
Hi, sorry for any confusion. The example was just to show that the window was not showing until after the loop had completed.

The program I am hoping to write is a simulation of ant foraging behaviour. Therefore, the images will be small bitmap ants. They are moving because, well, that's what ants do, especially when they are foraging.

What you suggest with the after() function sounds more like what I'm looking for.

Forgive my ignorance, I haven't done any programming since I was studying in the early 90's using Pascal. I will have to get my head around how the GUI's operate. Thank you for your patience.
Reply


Messages In This Thread
RE: Tk window not displaying until loop has completed - by Ganga - Aug-09-2021, 06:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 893 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  Trying to make random image loop in Tk window using python Jediguy18 1 3,324 Dec-30-2020, 04:56 AM
Last Post: deanhystad
  Displaying various layouts in a single window arbiel 6 4,257 Nov-08-2020, 09:21 PM
Last Post: arbiel
  tkinter window and turtle window error 1885 3 6,900 Nov-02-2019, 12:18 PM
Last Post: 1885
  update a variable in parent window after closing its toplevel window gray 5 9,331 Mar-20-2017, 10:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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