import Tkinter root = Tkinter.Tk() tv = Tkinter.StringVar() Tkinter.Label(textvariable=tv).pack() Tkinter.Entry(textvariable=tv).pack() tv.set('Welcome!') Tkinter.Button(text="Exit", command=root.quit).pack() Tkinter.mainloop() print tv.get()