Return the text from index1 up to but not including index2 as a string. If index2 is omitted, return the single character at index1. Embedded images and windows are omitted from the result.
tkinter/Text.get
Text.get