richtext.TextBoxAttr not working -- supported?

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).

Still tinkering with this and having no luck. Attached is my wee example I’d expect to work but doesn’t.

The interactions among richtext.TextBoxAttr and richtext.TextAttrBorders and .BeginStyle() and so forth are pretty tersely documented, if at all, and reaching down inside the TextBoxAttr and massaging the “m_border” attribute directly seems very not Pythony, but I can’t find any examples of doing this. It feels like this should be possible given the existence and description of the TextAttrBorders class, but somehow I’m just Doin’ It Wrong.

Thanks for any help.

border_example.py (1 KB)