The Entry widget in Tkinter is used to accept single-line text strings from a user.
-Entry widget accept all type of type of input like string, alphabet, number and special character.
-StringVar() and IntVar() are used to declared a string and integer variable.
Syntax-
e=Entry(window,option=value)
data=e.get()
// Here get() function return the text which is enter in Entry widget from the user side
program-
from tkinter import *
#create a window screen
win=Tk()
def getdata():
t=e.get()
l.config(text=t)
#show text on screen
l=Label(win,text="Starting",bg="green",fg="white")
l.place(x=140,y=100)
#Entry field at user side
e=Entry(win)
e.place(x=140,y=140)
#Create button
b=Button(win,text="Change",bg="white",command=getdata)
b.place(x=160,y=180)
#hold the screen
win.mainloop()