[Tkinter-discuss] Tkinter slows down

Fredrik Lundh fredrik at pythonware.com
Mon Jan 7 23:10:13 CET 2008


Cam Farnell wrote:

> This runs quickly at first but gradually slows down to a crawl during 
> the latter iterations. Anyone have any idea what is causing this to go 
> slow or how I could speed it up? I'm running Python 2.4.3 on an Ubuntu 
> 6.06 system.

grid_forget removes the widget from the screen, but it doesn't destroy 
it, nor does it remove them from the list of child widgets for the 
parent widget.

either redesign your code to reuse widgets when possible, or make sure 
to call the "destroy" method on them.

</F>



More information about the Tkinter-discuss mailing list