from tkinter import * root = Tk() root.title("Aimtocode") def returnEntry(arg=None): """Geting result from Entry and returning to the Label""" result = myEntry.get() resultLabel.config(text=result) myEntry.delete(0,END) # Create the Entry widget myEntry = Entry(root, width=20) myEntry.focus() myEntry.bind("",returnEntry) myEntry.pack() # Create the Enter button enterEntry = Button(root, text= "Enter", command=returnEntry) enterEntry.pack(fill=X) # Create and emplty Label to put the result in resultLabel = Label(root, text = "") resultLabel.pack(fill=X) root.geometry("+750+400") root.mainloop()