How to make padding around the text of TextCtrl?

I’ve noticed that in a single line TextCtrl the text is offset from the edge of the control by a set amount, whereas in a multi-line TextCtrl it isn’t.

wx.TextCtrl is derived from wx.TextEntry which has a SetMargins() method, however, calling that method has no effect on a multi-line TextCtrl (at least on linux, which is all I can test on). The documentation for SetMargins() says that it attempts to set the control margins, but doesn’t specify where it might not work.

In contrast the text in a RichTextCtrl is offset from the edge of the control by default.

Screenshot at 2022-12-06 08-34-27