When I try to add a command to a button it runs the command without me pressing the button. How do I fix this? For example, if I did this:
import tkinter
root = tkinter.Tk()
def a():
print("Hello")
button = tkinter.Button(root,command=a())
button.pack()
root.mainloop()
and ran it, it would execute the function a() without me pressing the button.