Use textvariable for Text box without Entry in TKinter Use textvariable for Text box without Entry in TKinter tkinter tkinter

Use textvariable for Text box without Entry in TKinter


TextArea = Text(textareaframe)#Remove the textvariable keyword argumentTextArea.pack()

To get the contents of the Text box you can do something like :

contents = TextArea.get('1.0','end')

TextArea.get('1.0','end') returns all the contents of the text box from the 0 index to the last index