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

SourceForge.net noreply at sourceforge.net
Sun Sep 28 10:52:28 EDT 2003


Bugs item #812986, was opened at 2003-09-26 05:33
Message generated for change (Comment added) made by jepler
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 



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

Comment By: Jeff Epler (jepler)
Date: 2003-09-28 09:52

Message:
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.

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

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