change the state of the Tkinter `Text` widget to read only i.e. `disabled`,text.config(state=DISABLED)