monospaced font in MS Windows with wxpython

Javier nospam at nospam.com
Fri Sep 11 18:16:36 EDT 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