how to know when text was entered tkinter code example
Example 1: calling a function in python upon entry content changing tkinter
from Tkinter import *
def callback(sv):
print sv.get()
root = Tk()
sv = StringVar()
sv.trace("w", lambda name, index, mode, sv=sv: callback(sv))
e = Entry(root, textvariable=sv)
e.pack()
root.mainloop()
Example 2: calling a function in python upon entry content changing tkinter
sv.trace_add("write", callback)