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.

classification
Title: turtle.py deferres exec of stmnts with tracer(0)
Type: Stage:
Components: Tkinter Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: glingl, jepler, loewis
Priority: normal Keywords:

Created on 2003-09-26 10:33 by glingl, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
turtle_.py glingl, 2003-09-28 22:08 this is turtle.py + a patch in line 290
Messages (4)
msg18384 - (view) Author: Gregor Lingl (glingl) (Python committer) Date: 2003-09-26 10:33
interactive use of turtle.py becomes impossible,
e.g.when issuing tracer(0) because in this
case apparently updating of Canvas-Widget is
deferred ...
... until the next tracer(1)
(one can observe this when running the demo() )

Inserting a _canvas.update() call in _draw_turtle()
for the case that tracing is off seems to work:

    def _draw_turtle(self,position=[]):
        if not self._tracing:
            self._canvas.update()  # <== insert this line!
            return
        if position == []:  # etc.etc.


I have attached a corrected version as turtle_.py

Gregor Lingl 
msg18385 - (view) Author: Jeff Epler (jepler) Date: 2003-09-28 14:52
Logged In: YES 
user_id=2772

You did not attach a file.  You must select a filename *and* turn on the checkbox to do so.
msg18386 - (view) Author: Gregor Lingl (glingl) (Python committer) Date: 2003-09-28 22:08
Logged In: YES 
user_id=505031

OH! Here is the file mentioned above
msg18387 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-06-17 18:44
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as r47007.
History
Date User Action Args
2022-04-10 16:11:24adminsetgithub: 39307
2003-09-26 10:33:58glinglcreate