How to connect StringVar to a text widget in Python / Tkinter?

Basically, I want the body of the Text widget to change when StringVar does.

+3
source share
1 answer

Short version, you can not.

If you want to do all the work yourself, you can configure tracing for the variable to update the text widget, and you can add bindings to the text widget to keep the variable up to date, but there is nothing built directly in Tkinter to do this automatically .

, , , , ascii - , .

+4

All Articles