How can I maintain read-only sections of a text widget?
Tk 8.3 introduced a disabled state option for tags, which enables this feature. If you want the entire text widget to be read-only, set the -state option of the text widget to disabled. Prior to 8.3, to create read-only sections in a text widget, you should make use of the text widget tag facility.