[GRASS-SVN] r42068 - grass-addons/gui/wxpython/data_catalog

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 30 14:56:51 EDT 2010


Author: rashadkm
Date: 2010-04-30 14:56:50 -0400 (Fri, 30 Apr 2010)
New Revision: 42068

Modified:
   grass-addons/gui/wxpython/data_catalog/LayerTree.py
Log:
fixed brush and pen colour for v.planet.py

Modified: grass-addons/gui/wxpython/data_catalog/LayerTree.py
===================================================================
--- grass-addons/gui/wxpython/data_catalog/LayerTree.py	2010-04-30 17:49:02 UTC (rev 42067)
+++ grass-addons/gui/wxpython/data_catalog/LayerTree.py	2010-04-30 18:56:50 UTC (rev 42068)
@@ -495,18 +495,18 @@
                 col=self.GetItemTextColour(item)
             else:
                 child,cookie = self.GetFirstChild(item)
-                print self.GetItemText(child)
                 col = self.GetItemTextColour(child)
             if col.IsOk() is True:
                 col=str(col)
-                col = col.strip('(')
-                col = col.strip(')')
+                col = col.replace('(','')
+                col = col.replace(')','')
+                col = col.split(',')
 
-               # print str(self.GetItemText(item))
-                cmdflag = 'v.planet.py -a map=' + str(self.GetItemText(item)) + ' brush=' + str(col) + ' pen=' + str(col) + ' size=' +str('1,1')
-                #print cmdflag
+                cmdflag = 'v.planet.py -a map=' + str(self.GetItemText(item)) + \
+                            ' brush=' + str(col[0].strip()+','+col[1].strip()+','+col[2].strip()) + \
+                            ' pen=' + str(col[0].strip()+','+col[1].strip()+','+col[2].strip()) + ' size=' +str('1,1')
+                print cmdflag
 
-
         if cmdflag is not None:        
             current = OssimPlanet(cmdflag)
             current.start()



More information about the grass-commit mailing list