in reply to Dynamically destroying a window in Tk?

Usually when doing something like this, you are going to use a method.

$windowname->quit;