Python Tkinter Multiple Commands
<p>I'm currently working on a GUI using Tkinter and Python. One of the windows I create has two buttons on it: one to restart a separate python script and the other one to shut down the whole program. </p>

<p>When I hit the "restart" button, I'd like it to run the restart code, and then destroy the window that has the two buttons on it. I saw something else on SO that let you run two commands at once through a button click but I can't seem to get it to work. Right now the code for the button is:</p>

<pre><code>buttonRestart = Button(restartWindow, text = "Restart", width = 8,
    height=3, command = lambda: self.restartExternal() and
    restartWinow.destroy)
</code></pre>

<p>When executed, it seems that the <code>restartExternal</code> code is working, but it doesn't destroy the window as well. Any suggestions would be greatly appreciated!</p>