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

Re: Tkinter weirdness item count

2005-05-03 Thread phil
> I seem to remember a thread a while ago about a 'bug' with the Tk Canvas > widget keeping a reference to objects that had been deleted... > > Have you thought about using the 'move' method to move your lines? I > think this will result in less supprises... > Actually I solved that problem.

Re: Tkinter weirdness item count

2005-05-03 Thread Martin Franklin
phil wrote: > 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 set of objects > about a rotation point. > rotate 360 degrees starts to get slow > after 720 degrees its

Re: Tkinter weirdness item count

2005-04-30 Thread Peter Otten
phil wrote: > def __del__(s): > line.count = line.count - 1 > > ## delete the line object if the > ## class instance is deleted > s.glob.can.delete(s.obj) > > > After the rotation I check line.count and it is 3 Did you know that exceptions are ignored in the __del__() method? One way to verify

Tkinter weirdness item count

2005-04-30 Thread phil
>> Using Tkinter Canvas to teach High School Geometry >> with A LOT of success. >Can you post a link to your code. >I'd like to see what you are doing. >Thx, >Alan Isaac Yes, I will release it open source at the end of may. There are too many features I want to add to release it now. Essentially it

Re: Tkinter weirdness item count

2005-04-29 Thread David Isaac
"phil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Using Tkinter Canvas to teach High School Geometry > with A LOT of success. Can you post a link to your code. I'd like to see what you are doing. Thx, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Tkinter weirdness item count

2005-04-29 Thread phil
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 set of objects about a rotation point. rotate 360 degrees starts to get slow after 720 degrees its crawling. I checked the item li