I'm attempting tkinter in python fo the first time but the Button command creates an error
from tkinter import *
RandomWindow = Tk()
Close = RandomWindow.destroy()
RandomButton = Button(RandomWindow, text = "Click to shuffle and select cards", command = Close)
RandomButton.pack()
It should create a window with a button but I just receive the error message
_tkinter.TclError: can't invoke "button" command: application has been destroyed