I'm tring to make a console app, so I want to detect when the user uses the "Enter" key, but it doesn't call my function when it's supposed to be.. Here's the code
CommandBar = Text(WINDOW, height="500", width="1000", bg="Black", fg="green", insertbackground="green")
WINDOW.geometry("1000x500")
WINDOW.title("SCP_OS:/Unknown User*")
WINDOW.configure(bg="black")
def ResetCommandBar(CommandEntered):
CommandBar.insert(END, "SCP_OS:/Unkown_User : ")
print(123)
WINDOW.bind("<Enter>", ResetCommandBar(CommandBar.get("1.0", "end -1c")))
CommandBar.pack()
WINDOW.mainloop()