469,637 Members | 1,564 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,637 developers. It's quick & easy.

Tkinter - One Canvas to Rule Them All?

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

Jul 18 '05 #1
1 1347
Dave Harris wrote:
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!
Maybe you are accidentally deleting the last reference to the image (the
canvas itself doesn't keep one). Care to show some code?
I deduce from this behavior that there is a single database behind the
scenes for the Canvas implementation.


I can't confirm that.

Peter

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by mksql | last post: by
1 post views Thread by Elaine Jackson | last post: by
1 post views Thread by syed_saqib_ali | last post: by
reply views Thread by syed_saqib_ali | last post: by
3 posts views Thread by Tuvas | last post: by
5 posts views Thread by Dean Allen Provins | last post: by
4 posts views Thread by Davy | last post: by
4 posts views Thread by skanemupp | last post: by
7 posts views Thread by Peter Pearson | last post: by
3 posts views Thread by joshdw4 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.