[GRASS-SVN] r67974 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 28 20:36:50 PST 2016
Author: wenzeslaus
Date: 2016-02-28 20:36:50 -0800 (Sun, 28 Feb 2016)
New Revision: 67974
Modified:
grass/trunk/gui/wxpython/gui_core/pystc.py
Log:
wxGUI: show whitespace in the python editor (pyedit and gmodeler)
Modified: grass/trunk/gui/wxpython/gui_core/pystc.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/pystc.py 2016-02-29 04:32:31 UTC (rev 67973)
+++ grass/trunk/gui/wxpython/gui_core/pystc.py 2016-02-29 04:36:50 UTC (rev 67974)
@@ -84,7 +84,12 @@
self.Bind(stc.EVT_STC_UPDATEUI, self.OnUpdateUI)
self.Bind(stc.EVT_STC_MARGINCLICK, self.OnMarginClick)
self.Bind(wx.EVT_KEY_DOWN, self.OnKeyPressed)
-
+
+ # show whitespace
+ self.SetViewWhiteSpace(1)
+ # make the symbols very light gray to be less distracting
+ self.SetWhitespaceForeground(True, wx.Colour(200, 200, 200))
+
# Make some styles, the lexer defines what each style is used
# for, we just have to define what each style looks like.
# This set is adapted from Scintilla sample property files.
More information about the grass-commit
mailing list