Re: Memory Leak with Tkinter Canvas (Python 2.5 Win32)

2007-08-03 Thread frikk
On Aug 3, 2:26 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "frikk" 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 rect

Re: Memory Leak with Tkinter Canvas (Python 2.5 Win32)

2007-08-03 Thread Hendrik van Rooyen
"frikk" 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 -- http://mail.python.org/mailma

Re: Memory Leak with Tkinter Canvas (Python 2.5 Win32)

2007-08-02 Thread Wojciech Muła
frikk wrote: > [...] > As you can see- I am doing nothing other than drawing a lot of > rectangles on the canvas. You aren't drawing, but **creating** rectangle objects, as a meth. name suggests. You find more info at tkinter.effbot.org. > [...] > > def clear_grid(): canv.delete(ALL)

Memory Leak with Tkinter Canvas (Python 2.5 Win32)

2007-08-02 Thread frikk
Hey everyone. I have been working with python for a couple years now, but just recently built my first program with a GUI. I decided to start with Tkinter since it is included with the base package, although wxWindows will likely be my next choice. Tkinter seems to be pretty slow for my needs.