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 epaine
Recipients epaine, techn010je11y, terry.reedy
Date 2021-08-28.15:50:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630165847.0.0.448742290324.issue45036@roundup.psfhosted.org>
In-reply-to
Content
The issue is that the "release" function appears to be called before the "drag" function for the last coordinate. The fix is probably only lowering the pen when the mouse button is first clicked, as this is guaranteed to be called before "release". I ended up with something like the following (after removing the pen lower logic from the "release" function):

def down(a, b):
    print("down")
    p.goto(a, b)
    p.down()
bg.onclick(down)
History
Date User Action Args
2021-08-28 15:50:47epainesetrecipients: + epaine, terry.reedy, techn010je11y
2021-08-28 15:50:46epainesetmessageid: <1630165847.0.0.448742290324.issue45036@roundup.psfhosted.org>
2021-08-28 15:50:46epainelinkissue45036 messages
2021-08-28 15:50:46epainecreate