def error ( self, excp ):
        self.control.SetBackgroundColour( ErrorColor )
        self.control.Refresh()

    #---------------------------------------------------------------------------
    #  Disposes of the contents of an editor:
    #---------------------------------------------------------------------------
Handles an error that occurs while setting the object's trait value.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/code_editor.py/SourceEditor.error