Any ideas on why this doesnt print hey in terminal? Im trying to make a calculator, but first I have to know wether the person know the in game currency (credits) or the real life currency (danish crownes)
import tkinter as tk
root = tk.Tk()
root.geometry('400x400')
ent = tk.Entry(root, fg="blue")
ent.pack()
def submit():
ent.get()
sbmt = tk.Button(root, text="Submit", fg="blue", command=submit)
sbmt.pack()
if sbmt == "credits":
print("hey")
root.mainloop()
ent.get(). I think you should store that in a variable.