Re: StyledTextCtrl.SetStyle not implemented error
Robin Dunn <[email protected]> Mon, 12 Mar 2018 09:59:38 -0700 (PDT)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
SetStyle is there to help the StyledTextCtrl be API compatible with wx.TextCtrl, but it has its own methodology for handling text styles which is very different, so it just raises the not implemented error instead. To learn more about styling in STC you can look at the Scintilla docs, and there are lots of examples around too. -- Robin On Sunday, March 11, 2018 at 11:08:37 AM UTC-7, Txema Vicente wrote: > > I am probably misunderstanding styles and what this method is for. > > I better learn to use styles, this works: > > out.StyleSetSpec(1, "fore:#FFFF00,back:#000022") > out.StartStyling(pos=0, mask=0xFF) > out.SetStyling(length=2, style=1) > -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.