# enable the control for changing $text->configure(-state => 'normal'); # do any changes $text->insert('end', 'text'); # restore state $text->configure(-state => 'disabled');