I am trying to make a button the command: print("test")
. Here is what I have so far:
import os
root = tk.Tk()
button = tk.Button(text="print",
fg="black",
command=print("test")
)
button.pack()
root.mainloop()
how can I do this?