def highlight_changed(self, event=None):
        if event:
            event.Skip()
        date = self.GetDate()

        attr = self.GetAttr(date.GetDay())
        if attr is None:
            bg_color = NORMAL_HIGHLIGHT_BG
            fg_color = NORMAL_HIGHLIGHT_FG
        else:
            bg_color = attr.GetBackgroundColour()
            fg_color = attr.GetTextColour()
        self.SetHighlightColours(fg_color, bg_color)
        self.Refresh()
        return


    #-- event handlers --------------------------------------------------------
Ensure pexpect continues to operate even when stdin is closed
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/date_editor.py/wxMouseBoxCalendarCtrl.highlight_changed--crossover with--dataset/ETHPy150Open Calysto/metakernel/metakernel/tests/test_expect.py/ExpectTestCase.test_stdin_closed