Message400478
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) |
|
Date |
User |
Action |
Args |
2021-08-28 15:50:47 | epaine | set | recipients:
+ epaine, terry.reedy, techn010je11y |
2021-08-28 15:50:46 | epaine | set | messageid: <1630165847.0.0.448742290324.issue45036@roundup.psfhosted.org> |
2021-08-28 15:50:46 | epaine | link | issue45036 messages |
2021-08-28 15:50:46 | epaine | create | |
|