

def _set_color(self):
    control = self.control
    if (not self._in_window):
        color = control.GetParent().GetBackgroundColour()
    elif self._down:
        color = DownColor
    else:
        color = HoverColor
    control.SetBackgroundColour(control)
    control.Refresh()

dataset/ETHPy150Open enthought/traitsui/traitsui/wx/text_editor.py ReadonlyEditor._set_color/VarMisuse@64/81 `color`->`control`