I’m playing around with a RichTextCtrl, trying to apply various styles to spans of text inside it. Things like BeginUnderline(), changing fonts, changing colors, are all working as expected. I’m also wanting to be able to outline a run of text with a border.
Digging through documentation, I found richtext.TextBoxAttr, which seems to be the thing I’m looking for, access to the “box model” around a run of text, with padding and border and margin and so forth. It’s pretty sparsely documented, though, and tinkering with it silently fails, making me think it might be, like, stubbed out or otherwise not supported in wxPython? Or possibly I’m just thinking about it the wrong way.
So, high level questions:
(a): should I expect that richtext.TextBoxAttr works (when attached to a RichTextAttr) to tinker with border? (And therefore I’m just getting it wrong somehow? I’ll get specific with code if this is the case.)
(b): Failing that, what is the right way to do the analog to CSS “span { border: 1px solid black }” inside a RichTextCtrl? Or is there one?
Thanks!
(Using Python 2.7, wxPython 3.0.2 as installed by Fedora 23).