Message76131
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
(setup_patch.diff).
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
other) fact. |
|
Date |
User |
Action |
Args |
2008-11-20 19:57:56 | gregorlingl | set | recipients:
+ gregorlingl, loewis, gpolo |
2008-11-20 19:57:56 | gregorlingl | set | messageid: <1227211076.08.0.246029847053.issue4117@psf.upfronthosting.co.za> |
2008-11-20 19:57:55 | gregorlingl | link | issue4117 messages |
2008-11-20 19:57:53 | gregorlingl | create | |
|