tkinter destroy()

max(01)* max2 at fisso.casa
Tue Mar 29 05:37:10 EST 2005


hi people.

when i create a widget, such as a toplevel window, and then i destroy 
it, how can i test that it has been destroyed? the problem is that even 
after it has been destroyed, the instance still exists and has a tkinter 
name, so testing for None is not feasible:

 >>> import Tkinter
 >>> fin = None
 >>> fin1 = Tkinter.Toplevel()
 >>> fin1.destroy()
 >>> print fin1
.1075951116

any help?

bye

macs



More information about the Python-list mailing list