Modification de la police sur un widget wxPython TextCtrl
Question
Je voudrais définir la police d'un wx.TextCtrl widget à Consolas, ou au moins une autre police à espacement fixe. Comment pourrais-je aller à ce sujet?
La solution
font1 = wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL, False, u'Consolas')
myTextCtrl.SetFont(font1)
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow