[issue4117] missing update() in _Screen.setup() of Lib/turtle.py
report at bugs.python.org
Thu Nov 20 20:57:56 CET 2008
Gregor Lingl <gregorlingl at users.sourceforge.net> added the comment:
The attached file setup_bug_demo.py shows the bug of this issue. It's
taken out of a working game application and radically abridged to
concentrate on this issue.
Now the patch to fix the bug has to be changed a bit (because of the
changes of Martin's Singleton fix). A diff file follows immediately
I tried out (in a simple straight forward way and in contradiction with
my ideas mentioned in a previous posting)
(1) to replace the update() call by _Screen._canvas.update_idletasks() and
(2) to do a similar replacement in TurtleScreenBase._update()
Neither of these work. The second change even affects seriously the
working of the modules demo().
I'd like to mention that in the former turtle module upto 2.5 (remember:
the compatibility to it was a requirement for the new one) there are
also several Canvas.update() calls but no Canvas.update_idletasks() call.
I never noticed negative consequences of this and as far as I know,
neither concerning the old module nor the new one there were ever
complaints concerning bad ("sluggish") performance due to this (or any
Added file: http://bugs.python.org/file12079/setup_bug_demo.py
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list