rtc = wx.richtext.RichTextCtrl(self, style=wx.VSCROLL | wx.HSCROLL | wx.
    NO_BORDER)
rtc.BeginTextColour((255, 0, 0))
rtc.WriteText('this color is red')
rtc.EndTextColour()
rtc.Newline()
different foreground colors for each line in wxPython wxTextCtrl