[GRASS-SVN] r33957 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 21 17:11:01 EDT 2008
Author: martinl
Date: 2008-10-21 17:11:01 -0400 (Tue, 21 Oct 2008)
New Revision: 33957
Modified:
grass/trunk/gui/wxpython/gui_modules/colorrules.py
Log:
colortable: allow negative values
set icon
(merge from devbr6, r33956)
Modified: grass/trunk/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/colorrules.py 2008-10-21 21:08:47 UTC (rev 33956)
+++ grass/trunk/gui/wxpython/gui_modules/colorrules.py 2008-10-21 21:11:01 UTC (rev 33957)
@@ -48,6 +48,8 @@
@param cmd command (given as list)
"""
self.parent = parent # GMFrame
+
+ self.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
# grass command
self.cmd = kwargs['cmd']
@@ -449,7 +451,7 @@
if self.elem == 'cell':
try:
- if '%' not in vals:
+ if vals != '-':
float(vals)
except ValueError:
tc.SetValue('')
More information about the grass-commit
mailing list