from tkinter import *
root = Tk()
root.title('printer')
label = Label(root, text = "WELCOME", fg = "grey")
label.pack()
textbox = Entry(root)
textbox.pack()
def whenclicked():
global hello
hello = "textbox.get()"
label1 = Label(root, text = hello)
label1.pack()
button = Button(root, text = "print it", command = whenclicked())
button.pack()
root.mainloop()
when I run this code , before I click the button the output is already present . what is wrong in this?