Message400470
(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) |
|
Date |
User |
Action |
Args |
2021-08-28 13:15:14 | techn010je11y | set | recipients:
+ techn010je11y, terry.reedy |
2021-08-28 13:15:14 | techn010je11y | set | messageid: <1630156514.02.0.346025167609.issue45036@roundup.psfhosted.org> |
2021-08-28 13:15:13 | techn010je11y | link | issue45036 messages |
2021-08-28 13:15:13 | techn010je11y | create | |
|