From 21854963ed60a885d68afa12d5f1ec03d69e630b 2009-02-23 23:02:38 From: Laurent Dufrechou Date: 2009-02-23 23:02:38 Subject: [PATCH] added antialiasing option --- diff --git a/IPython/frontend/wx/console_widget.py b/IPython/frontend/wx/console_widget.py index 21778ec..7be4d9a 100644 --- a/IPython/frontend/wx/console_widget.py +++ b/IPython/frontend/wx/console_widget.py @@ -316,7 +316,12 @@ class ConsoleWidget(editwindow.EditWindow): self.SetWrapMode(stc.STC_WRAP_CHAR) self.SetWrapMode(stc.STC_WRAP_WORD) self.SetBufferedDraw(True) - self.SetUseAntiAliasing(True) + + if 'antialiasing' in p: + self.SetUseAntiAliasing(p['antialiasing']) + else: + self.SetUseAntiAliasing(True) + self.SetLayoutCache(stc.STC_CACHE_PAGE) self.SetUndoCollection(False) self.SetUseTabs(True) diff --git a/IPython/frontend/wx/ipythonx.py b/IPython/frontend/wx/ipythonx.py index 5fc1027..4b31e5d 100644 --- a/IPython/frontend/wx/ipythonx.py +++ b/IPython/frontend/wx/ipythonx.py @@ -128,6 +128,10 @@ Simple graphical frontend to IPython, using WxWidgets.""" if options.colorset == 'black': style = { + #advanced options + 'antialiasing' : True, + + #background + carret color 'carret_color' : 'WHITE', 'background_color' : 'BLACK',