Why does the Canvas Rectangle and its canvas item not get destroyed
using the following fragment:
from Tkinter import *
from Canvas import *
root = Tk()
canvas = Canvas( root )
canvas.pack()
rect = Rectangle( canvas, 1, 1, 100, 100 )
rect = None # <--- Destroy it here
root.update_idletasks()
You can see the rectangle even after the "rect = None" executes.
Randall
using the following fragment:
from Tkinter import *
from Canvas import *
root = Tk()
canvas = Canvas( root )
canvas.pack()
rect = Rectangle( canvas, 1, 1, 100, 100 )
rect = None # <--- Destroy it here
root.update_idletasks()
You can see the rectangle even after the "rect = None" executes.
Randall