How to delete yourself????

christian.siegl at gmail.com christian.siegl at gmail.com
Mon Oct 17 12:45:18 EDT 2005


Well, this might be the best way, but my special case is programming a
GUI. And a (child) window receives a close event and wants to destroy
itself. The main window (parent) will never notice that (or its lots of
code and not very nice....). So that is the case and there is no way
that the parent deletes the child.

By the way, I am aware of the fact that I'm just deleting a reference.
But on deleting the last reference (and that's what I wanna do here)
the object will be destroyed........

chris




More information about the Python-list mailing list