ЕМ
def out():
widget_text.configure(state="normal")
widget_text.insert(1.0, "OK\n")
widget_text.configure(state="disabled")
root = tk.Tk()
widget_text = tk.Text(root, width=40, height=6, state="disabled", background="red", foreground="white")
widget_text.pack()
out()
root.mainloop()

