Skip to content
Advertisement

Is there a way to make the Tkinter text widget read only?

It doesn’t look like it has that attribute, but it’d be really useful to me.

Advertisement

Answer

You have to change the state of the Text widget from NORMAL to DISABLED after entering text.insert() or text.bind() :

text.config(state=DISABLED)
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement