Re: Tkinter slowes down

2005-05-30 Thread Fredrik Lundh
Eric Brunel wrote: >> In the meantime I found that widget.destroy() works well, too (before >> "repainting"). > > This was the only solution I found using "regular" Tkinter widgets when > there are bindings on canvas items. I tried to find another solution by > modifying Tkinter.py, but the proble

Re: Tkinter slowes down

2005-05-30 Thread Eric Brunel
On Sat, 28 May 2005 18:21:46 +0200, pavel.kosina <[EMAIL PROTECTED]> wrote: > 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. >> >

Re: Tkinter slowes down

2005-05-28 Thread pavel.kosina
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

Re: Tkinter slowes down

2005-05-28 Thread Fredrik Lundh
"pavel.kosina" <[EMAIL PROTECTED]> wrote: > It seems to me that in my "again and again repainting canvas" script the > rendering is slowing down as the time goes. 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