[Python-bugs-list] [ python-Bugs-812986 ] turtle.py deferres exec of stmnts with tracer(0)

SourceForge.net noreply at sourceforge.net
Fri Sep 26 06:33:58 EDT 2003


Bugs item #812986, was opened at 2003-09-26 12:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=812986&group_id=5470

Category: Tkinter
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregor Lingl (glingl)
Assigned to: Martin v. Löwis (loewis)
Summary: turtle.py deferres exec of stmnts with tracer(0)

Initial Comment:
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 



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=812986&group_id=5470



More information about the Python-bugs-list mailing list