Scenario is something like this:- I created a label named as Username and created a Entry as entry1 withe the code like below. And I created another label Label2 where I want to display the same value inserted above in entry1. Code is something like below:
from Tkinter import *
root = Tk()
test=StringVar()
label1=Label(root,text='Username').grid()
entry1 = Entry(root, textvariable=test)
entry1.grid()
#print test
button1 = Button(root, text = 'Login',).grid()
label2=Label(root,textvariable= test).grid()
root.mainloop()
PS: This is the code I am working with, I am a newbie in Python and Tkinter so please suggest the easiest approach.