I have difficulty understanding why this very simple piece of code doesn't work. Basically it's supposed to print anything out you type. It runs without errors but when I type something into the entry widget and press the submit button it doesn't print anything out. I'm using Python 3.xx.
from tkinter import *
window = Tk()
def GET():
typed = e.get()
print(typed)
e = Entry(window)
e.pack()
b = Button(window, text = "Submit", command = GET())
b.pack()
window.mainloop()