Tkinter - pixel or widget color

2005-04-04 Thread pavel.kosina
I would need to get at canvas pixel color under certain moving widget or better (= faster?) colors/"types" of underlying static widgets that are of polygon shape (not rectangle). How to arrange it without using higher math that must have to compute actual distance of each of point on a polygon?

Tkinter slowes down

2005-05-28 Thread pavel.kosina
It seems to me that in my "again and again repainting canvas" script the rendering is slowing down as the time goes. It is visible even after 10 seconds. Any idea why? -- geon The exception is rule. -- http://mail.python.org/mailman/listinfo/python-list

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 weirdness item count

2005-05-29 Thread pavel.kosina
I think the answer you should find under Subject: Tkinter slowes down --- geon Exception is rule. phil napsal(a): > Using Tkinter Canvas to teach High School Geometry > with A LOT of success. > > My drawing gets very slow after a lot of actions. > > For instance I have created code to rotate a