[New-bugs-announce] [issue45036] turtle.onrelease() event doesn't get triggered sometimes

Techn010 Je11y report at bugs.python.org
Sat Aug 28 09:15:14 EDT 2021


New submission from Techn010 Je11y <techn010je11y at gmail.com>:

(pls read with reference to attached code)

I made a Paint-ish program with Turtle. As there isn't ondrag or onrelease for Screen, I created a turtle named bg so I could use ondrag and onrelease (see file attached ig) and eliminate the need for double-clicking(previously I used Screen.onclick to pen.up(), move it to cursor, and pen.down() then use turtle.drag() to draw). However, I noticed that it doesn't work(turtle doesn't penup when mouse is released sometimes) and added the print("...", i(or j)) bits(pls see code). On at least 1 instance 'start' was printed without a corresponding release. I'm a beginner so I apologise if it's just a bug in my code. I did not install anything related to python after I installed 3.9.6(64-bit btw). I do not have any other versions. I did not alter any part of what's installed.

System info:
Windows 10 Pro Education
Version 10.0.19043(or 21H1), Build 19043.1165
Windows Feature Experience Pack 120.2212.3530.0
Lenovo L13 Gen 2, x64 based PC
11th Gen Intel Core i5-1135G7 @ 2.4GHz, 4 Cores, 8 logical processors
8GB ram

Attached is my code(I'm sorry if it hurts your eyes)

----------
assignee: terry.reedy
components: IDLE, Tkinter
files: pain2exp.py
messages: 400470
nosy: techn010je11y, terry.reedy
priority: normal
severity: normal
status: open
title: turtle.onrelease() event doesn't get triggered sometimes
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50239/pain2exp.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45036>
_______________________________________


More information about the New-bugs-announce mailing list