Sep-24-2020, 07:59 AM
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
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
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.