Vertically center text in a wx.TextCtrl widget

I noticed that when I increase a TextCtrl widget’s height, the text in the widget is not centered vertically, but rather aligned to the top edge of the widget, as shown in the screenshot below. I wonder if there is a way to make the text center vertically.

I would try setting the control’s `wx.TE_CENTRE style flag

See the docs for more info: https://wxpython.org/Phoenix/docs/html/wx.TextCtrl.html

Mike
`

···

On Thursday, November 17, 2016 at 1:48:59 PM UTC-6, Alex wrote:

I noticed that when I increase a TextCtrl widget’s height, the text in the widget is not centered vertically, but rather aligned to the top edge of the widget, as shown in the screenshot below. I wonder if there is a way to make the text center vertically.