Added setReadOnly method to the Text class. Because this is an old style widget it lacked the option to change to readonly.