[GRASS-SVN] r58558 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 30 03:25:50 PST 2013
Author: martinl
Date: 2013-12-30 03:25:50 -0800 (Mon, 30 Dec 2013)
New Revision: 58558
Modified:
grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: change pen style for disabled actions
Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py 2013-12-30 11:21:30 UTC (rev 58557)
+++ grass/trunk/gui/wxpython/gmodeler/model.py 2013-12-30 11:25:50 UTC (rev 58558)
@@ -986,7 +986,12 @@
else:
width = int(UserSettings.Get(group='modeler', key='action',
subkey=('width', 'default')))
- pen = wx.Pen(wx.BLACK, width, wx.SOLID)
+ if self.isEnabled:
+ style = wx.SOLID
+ else:
+ style = wx.DOT
+
+ pen = wx.Pen(wx.BLACK, width, style)
self.SetPen(pen)
def SetLabel(self, label=None):
More information about the grass-commit
mailing list