def __init__():
    self.output_box = Text(fourth_frame, width=160, height=25, background=
        'black', foreground='white')
self.output_box.configure(state='disabled')

def somefunction():
    pass
How to disable input to a Text widget but allow programatic input?