import tkinter as tk root = tk.Tk() root.geometry("400x240") def getTextInput(event): result=textExample.get(1.0, tk.END+"-1c") print(result) return textExample=tk.Text(root, height=15) textExample.pack() textExample.bind('', getTextInput) root.mainloop()