[GRASS-SVN] r33956 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 21 17:08:47 EDT 2008


Author: martinl
Date: 2008-10-21 17:08:47 -0400 (Tue, 21 Oct 2008)
New Revision: 33956

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
Log:
colortable: allow negative values
	set icon


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py	2008-10-21 20:57:57 UTC (rev 33955)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py	2008-10-21 21:08:47 UTC (rev 33956)
@@ -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