##importing tkinter
from tkinter import *
###function to destroy button
def hide():
b.pack_forget()
l=Label(r,text="destryed").pack()
##main body
r=Tk()
r.geometry("1000x1000")
b=Button(r,text="click",command=hide()).pack()
r.mainloop()