Tkinter - One Canvas to Rule Them All?

Dave Harris dpharris76 at msn.com
Tue May 25 00:44:15 EDT 2004


I derived two Frame classes and created a Canvas in each. I was extremely 
surprised when frame1.canvas.delete('all') erased the image in 
frame2.canvas!

I resolved my trouble by assigning tags and doing the deletion by tag. No 
big deal.

I deduce from this behavior that there is a single database behind the 
scenes for the Canvas implementation.

Just an observation. Maybe it will save somebody some head-scratching...

Dave Harris 




More information about the Python-list mailing list