Memory Leak with Tkinter Canvas (Python 2.5 Win32)
Wojciech Muła
wojciech_mula at poczta.null.onet.pl.invalid
Thu Aug 2 15:16:39 EDT 2007
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)
> for i in range(0,HEIGHT/10):
> for j in range(0, HEIGHT/10):
> canv.create_rectangle(i*10,j*10, \
> i*10+10, j*10+10, \
> fill = "white")
w.
More information about the Python-list
mailing list