[Tutor] Continuously slower program

SA sarmstrong13@mac.com
Wed, 12 Jun 2002 13:32:09 -0500


On 6/12/02 11:49 AM, "Michael P. Reilly" <arcege@speakeasy.net> wrote:

> On Tue, Jun 11, 2002 at 04:57:28PM -0700, Seiji Funai wrote:
>> This is a test for the beginning of a meter that I'm
>> writing for a GUI.  The application slows
>> continuously.  Does my computer just suck, or is there
>> something I can do?  Please let me know.
> 
> Your problem is that you continually create new canvas objects inside the
> while loop.  You should be creating the objects once, and changing them
> as needed.  That was increasing the processing of the Canvas object,
> increasing the memory of it, and sucking up CPU time.
> 
I get the following error when I run the revamped script:
 File "./TestMeter2.py", line 35
    self.testMeterCanvas.coords(self.c, 33, 33, self.x, self.y)
    ^
SyntaxError: invalid syntax

What did I do wrong?

Thanks.
SA