Python Forum

Full Version: Tkinter/turtle doevents
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.