title: Python TKInter destroy not working
body: <p>I am trying to close a TKInter window with <code>self.win.destroy</code>.</p>
  
  <p>The following error is thrown when <code>bind</code>ing the event to a button:</p>
  
  <pre><code>...
  Can't invoke "bind" command: application has been destroyed
  During handling the above exception, another exception occured:
  ...
  Can't invoke "destroy" command: application has been destroyed
  </code></pre>
  
  <p>How do I bind a "close-window" command to the button?</p>