title: How to fix "can't invoke button command" in python using tkinter
body: <p>I'm attempting tkinter in python fo the first time but the Button command creates an error</p>
  
  <pre class="lang-py prettyprint-override"><code>from tkinter import *
  RandomWindow = Tk()
  Close = RandomWindow.destroy()
  RandomButton = Button(RandomWindow, text = "Click to shuffle and select cards", command = Close)
  RandomButton.pack()
  </code></pre>
  
  <p>It should create a window with a button but I just receive the error message </p>
  
  <pre class="lang-sh prettyprint-override"><code>_tkinter.TclError: can't invoke "button" command: application has been destroyed
  </code></pre>