On Apr 23, 11:05 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > On my platform, styling the text doesn't work for single line
> > TextCtrl's(which seems kind of stupid), and on Windows I think you are
> > required to specify wx.TE_RICH2 to style the text. This following
> > code colors the
> On my platform, styling the text doesn't work for single line
> TextCtrl's(which seems kind of stupid), and on Windows I think you are
> required to specify wx.TE_RICH2 to style the text. This following
> code colors the entered text red for me:
That's it! I didn't have the TE_RICH2 option set
On Apr 20, 8:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm running Python2.5 with wxPython v2.8.3.0 under WinXP and I cannot
> get the SetDefaultStyle method to work.
>
> I'm trying:
>
> self.output.SetDefaultStyle(wx.TextAttr(wx.RED))
> self.output.AppendText(text)
>
I'm running Python2.5 with wxPython v2.8.3.0 under WinXP and I cannot
get the SetDefaultStyle method to work.
I'm trying:
self.output.SetDefaultStyle(wx.TextAttr(wx.RED))
self.output.AppendText(text)
self.output.SetDefaultStyle(wx.TextAttr())
where "self.output" is a Text