Re: [Tutor] Continuously slower program
by SA other posts by this author
Jun 12 2002 6:32PM messages near this date
Re: [Tutor] Continuously slower program
|
Re: [Tutor] Continuously slower program
On 6/12/02 11:49 AM, "Michael P. Reilly" <arcege@[...].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
_______________________________________________
Tutor maillist - Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Seiji Funai
Michael P. Reilly
Gregor Lingl
SA
Michael P. Reilly
SA
Jeff Shannon
SA
Derrick 'dman' Hudson
|