Python Forum
[Tkinter] Tkinter/turtle doevents - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [Tkinter] Tkinter/turtle doevents (/thread-29878.html)



Tkinter/turtle doevents - DPaul - Sep-24-2020

In Turtle you can allow the user to click inside the app window to trigger some action.
i.e. : onclick() event, returning the x,y position of the mouse.
This works perfectly fine.

I have noticed that by clicking again, before the previous action (some drawing)
has been completed, Turtle will not execute that drawing completely and turn its attention to the next click.

The question is , whether Turtle has some kind of "doevents" built-in.
I searched this and time.sleep() was suggested, but i doubt this is a solution.

thx,
Paul