Tkinter slowes down

pavel.kosina geon at post.cz
Sat May 28 12:21:46 EDT 2005


Fredrik Lundh napsal(a):
> when you add an item to the canvas, it's part of the canvas
> until you remove it.  if performance drops, it's usually because
> you keep adding new items without removing the old ones.
> 
> try adding a w.delete(ALL) call before you "repaint".
> 

In the meantime I found that widget.destroy() works well, too (before 
"repainting").

Thanks  a lot

-- 
geon
Vyjímka je pravidlo. Rekurzivní.



More information about the Python-list mailing list