tk text entry code example
Example 1: read value from entry tkinter
#ent is the name of the Entry
s = ent.get()
Example 2: write in entry() in tkinter
v = StringVar()
e = Entry(master, textvariable=v)
e.pack()
v.set("a default value")
s = v.get()