This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients belopolsky, gregorlingl, terry.reedy
Date 2011-02-05.02:32:21
SpamBayes Score 8.781504e-05
Marked as misclassified No
Message-id <1296873142.21.0.898105761304.issue7074@psf.upfronthosting.co.za>
In-reply-to
Content
This is not a duplicate because this issue is about the stdlib turtle module doing something wrong and needing to be fixed. Also, this issue does not involve threads, at least none that I starting.

"It is not safe to call graphic primitives in event callbacks."

This is a confusing statement. The tutorial at
http://www.tkdocs.com/tutorial/canvas.html
by an experienced tk developer (19 years) includes this:

def addLine(event):
    global lastx, lasty
    canvas.create_line((lastx, lasty, event.x, event.y))
    lastx, lasty = event.x, event.y

Is canvas.create_line a primitive or not?

At the very least, unless I missed something, some change to turtle doc is needed.
History
Date User Action Args
2011-02-05 02:32:22terry.reedysetrecipients: + terry.reedy, belopolsky, gregorlingl
2011-02-05 02:32:22terry.reedysetmessageid: <1296873142.21.0.898105761304.issue7074@psf.upfronthosting.co.za>
2011-02-05 02:32:21terry.reedylinkissue7074 messages
2011-02-05 02:32:21terry.reedycreate