Python Forum
[Tkinter] Tkinter/turtle doevents
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Tkinter/turtle doevents
#1
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
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'.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Turtle / turtle question DPaul 2 2,146 Oct-04-2020, 09:23 AM
Last Post: DPaul
  [Tkinter] Tkinter/Turtle Stopping and Starting Timers Cleanly robin73 2 3,362 Apr-01-2020, 07:31 AM
Last Post: robin73
  tkinter window and turtle window error 1885 3 6,698 Nov-02-2019, 12:18 PM
Last Post: 1885

Forum Jump:

User Panel Messages

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