def _error_changed ( self, error ):
        if error:
            self.control.SetBackgroundColour( ErrorColor )
        else:
            self.control.SetBackgroundColour( OKColor )

        self.control.Refresh()

    #-- Wx Event Handlers ------------------------------------------------------
Handles the 'error' trait being changed.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/history_control.py/HistoryControl._error_changed