|
2 | 2 | # A part of NonVisual Desktop Access (NVDA) |
3 | 3 | # This file is covered by the GNU General Public License. |
4 | 4 | # See the file COPYING for more details. |
5 | | -# Copyright (C) 2008-2020 NV Access Limited, Leonard de Ruijter, Julien Cochuyt |
| 5 | +# Copyright (C) 2008-2024 NV Access Limited, Leonard de Ruijter, Julien Cochuyt, Cyrille Bougot |
6 | 6 |
|
7 | 7 | import watchdog |
8 | 8 |
|
@@ -298,13 +298,19 @@ def __init__(self, parent): |
298 | 298 | self.Bind(wx.EVT_CLOSE, self.onClose) |
299 | 299 | mainSizer = wx.BoxSizer(wx.VERTICAL) |
300 | 300 | self.outputCtrl = wx.TextCtrl(self, wx.ID_ANY, size=(500, 500), style=wx.TE_MULTILINE | wx.TE_READONLY|wx.TE_RICH) |
| 301 | + font = self.outputCtrl.GetFont() |
| 302 | + font.SetFaceName('Consolas') |
| 303 | + self.outputCtrl.SetFont(font) |
301 | 304 | self.outputCtrl.Bind(wx.EVT_KEY_DOWN, self.onOutputKeyDown) |
302 | 305 | self.outputCtrl.Bind(wx.EVT_CHAR, self.onOutputChar) |
303 | 306 | mainSizer.Add(self.outputCtrl, proportion=2, flag=wx.EXPAND) |
304 | 307 | inputSizer = wx.BoxSizer(wx.HORIZONTAL) |
305 | 308 | self.promptLabel = wx.StaticText(self, wx.ID_ANY) |
306 | 309 | inputSizer.Add(self.promptLabel, flag=wx.EXPAND) |
307 | 310 | self.inputCtrl = wx.TextCtrl(self, wx.ID_ANY, style=wx.TE_DONTWRAP | wx.TE_PROCESS_TAB) |
| 311 | + font = self.inputCtrl.GetFont() |
| 312 | + font.SetFaceName('Consolas') |
| 313 | + self.inputCtrl.SetFont(font) |
308 | 314 | self.inputCtrl.Bind(wx.EVT_CHAR, self.onInputChar) |
309 | 315 | self.inputCtrl.Bind(wx.EVT_TEXT_PASTE, self.onInputPaste) |
310 | 316 | inputSizer.Add(self.inputCtrl, proportion=1, flag=wx.EXPAND) |
|
0 commit comments