Jul-13-2020, 04:05 AM
I want to get the last entry in my text widget.
This writes an entry to the text widget (thanks to Menator01):
What value must X have to get the last entry, the last line, in the text widget? I need to do this a few times.
This writes an entry to the text widget (thanks to Menator01):
def printit(text): #text_area.delete(0.0, tk.END) text_area.insert(tk.END, text.get() + '\n')I can't see how to assign this directly to a variable. But I can use:
def retrieve_input(): #input = self.myText_Box.get("1.0",'end-1c') answer = text_area.get(X)to get all the text.
What value must X have to get the last entry, the last line, in the text widget? I need to do this a few times.