Message328663
I confirm that dragbug.py (2009-08-17!) is failing for me, almost ten years later. I'm using Python 3.6.1/win32 on Windows 10.
This is really disappointing, because I have students who I'm teaching Python to via turtle, and I like to show them Python working.
I have found a workaround which -- if this bug won't be fixed -- I propose mentioning in the documentation.
The work-around is something like this:
g = {"X": 0, "Y": 0}
def goto_later(x, y): g["X"] = x; g["Y"] = y
def ontick():
goto(g["X"], g["Y"])
ontimer(ontick, 10)
ondrag(goto_later)
ontimer(ontick, 10)
That way, there is no opening for recursion within the handler for the ondrag event. |
|
Date |
User |
Action |
Args |
2018-10-27 21:58:12 | LionKimbro | set | recipients:
+ LionKimbro, loewis, terry.reedy, kbk, pitrou, vstinner, gregorlingl, dino.viehland, r.david.murray, asvetlov, flupke, python-dev, Peter.Wentworth, Emmanuel.Decitre, serhiy.storchaka, willingc |
2018-10-27 21:58:12 | LionKimbro | set | messageid: <1540677492.06.0.788709270274.issue6717@psf.upfronthosting.co.za> |
2018-10-27 21:58:12 | LionKimbro | link | issue6717 messages |
2018-10-27 21:58:11 | LionKimbro | create | |
|