Re: wx.TextCtrl.SetDefaultStyle not working?

2007-04-23 Thread 7stud
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

Re: wx.TextCtrl.SetDefaultStyle not working?

2007-04-23 Thread [EMAIL PROTECTED]
> 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

Re: wx.TextCtrl.SetDefaultStyle not working?

2007-04-21 Thread 7stud
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) >

wx.TextCtrl.SetDefaultStyle not working?

2007-04-20 Thread [EMAIL PROTECTED]
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