Memory Leak with Tkinter Canvas (Python 2.5 Win32)

frikk frikker at gmail.com
Fri Aug 3 08:54:57 EDT 2007


On Aug 3, 2:26 am, "Hendrik van Rooyen" <m... at microcorp.co.za> wrote:
> "frikk" <fr...l.com> wrote:
> >   1.  ....... Am I somehow leaving
> > objects laying around that aren't being deleted? Is create_rectangle
> > not the appropriate function to use?)
>
> Try calling the canvas's delete method with the old rectangle before
> making a new one.
>
> - Hendrik

Hey guys-

  Both of your suggestions were perfect - I was just unaware I was
actually creating new *object* instead of drawing on the canvas.  noob
mistake.  Thanks again!

-Blaine




More information about the Python-list mailing list