monospaced font in MS Windows with wxpython

Javier nospam at
Sat Sep 12 00:16:36 CEST 2015

I am trying to use a monospaced font (preferably small) in MS Windows
with wxpython.  I have tried

txtctrl.SetFont(wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL, False, u'Consolas'))

but no success, I still get a proportional font.

More information about the Python-list mailing list