[GRASS-SVN] r47253 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 26 18:26:57 EDT 2011


Author: martinl
Date: 2011-07-26 15:26:57 -0700 (Tue, 26 Jul 2011)
New Revision: 47253

Modified:
   grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxNviz: cosmetics in doxygen documentation


Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2011-07-26 19:44:09 UTC (rev 47252)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2011-07-26 22:26:57 UTC (rev 47253)
@@ -1725,9 +1725,8 @@
         self.win['decoration'] = {}
 
         pageSizer = wx.BoxSizer(wx.VERTICAL)
-        #
+        
         # north arrow
-        #
         self.win['decoration']['arrow'] = {}
         nabox = wx.StaticBox (parent = panel, id = wx.ID_ANY,
                              label = " %s " % (_("North Arrow")))
@@ -2737,15 +2736,26 @@
             self.mapWindow.Refresh(False)
         
     def _getColorString(self, color):
-        """!change color to R:G:B format"""
+        """!Convert color tuple to R:G:B format
+
+        @param color tuple
+        
+        @return string R:G:B
+        """
         return str(color[0]) + ':' + str(color[1]) + ':' + str(color[2])
     
     def _getColorFromString(self, color, delim = ':'):
-        """!change color from R:G:B format to wx.Color"""
+        """!Convert color string (R:G:B) to wx.Color
+
+        @param color string
+        @param delim delimiter
+
+        @return wx.Color instance
+        """
         return wx.Color(*map(int, color.split(delim)))
     
     def _get3dRange(self, name):
-        """!helper func for getting range of 3d map"""
+        """!Gelper func for getting range of 3d map"""
         ret = gcmd.RunCommand('r3.info', read = True, flags = 'r', map = name)
         if ret:
             range = []



More information about the grass-commit mailing list