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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 25 16:41:04 EST 2009


Author: martinl
Date: 2009-12-25 16:41:03 -0500 (Fri, 25 Dec 2009)
New Revision: 40143

Modified:
   grass/trunk/gui/wxpython/gui_modules/debug.py
Log:
debug.py: doxygenization


Modified: grass/trunk/gui/wxpython/gui_modules/debug.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/debug.py	2009-12-25 21:12:41 UTC (rev 40142)
+++ grass/trunk/gui/wxpython/gui_modules/debug.py	2009-12-25 21:41:03 UTC (rev 40143)
@@ -1,21 +1,21 @@
-"""
-MODULE: debug
+"""!
+ at package debug
 
-CLASSES:
- * DebugMsg
+ at brief Debugging
 
-PURPOSE: GRASS debugging
+Classes:
+ - DebugMsg
 
-         from debug import Debug as Debug
-         Debug.msg (3, 'debug message')
+ at code
+from debug import Debug as Debug
+Debug.msg (3, 'debug message')
+ at endcode
          
-AUTHORS: The GRASS Development Team
-         Martin Landa <landa.martin gmail.com>
+COPYRIGHT: (C) 2007-2009 by the GRASS Development Team
+This program is free software under the GNU General Public License
+(>=v2). Read the file COPYING that comes with GRASS for details.
 
-COPYRIGHT: (C) 2007-2008 by the GRASS Development Team
-           This program is free software under the GNU General Public
-           License (>=v2). Read the file COPYING that comes with GRASS
-           for details.
+ at author Martin Landa <landa.martin gmail.com>
 """
 
 import os
@@ -24,10 +24,12 @@
 import globalvar
 
 class DebugMsg:
-    """
-    GRASS Debugging
+    """!
+    wxGUI debugging
 
+    @code
     export GRASS_WX_DEBUG=[0-5]
+    @endcode
     """
     def __init__(self):
         # default level
@@ -46,16 +48,16 @@
                 
             if self.debuglevel != level:
                 self.debuglevel = level
-
+        
     def msg (self, level, message):
         self._update_level()
         if self.debuglevel > 0 and level > 0 and level <= self.debuglevel:
             print >> sys.stderr, "GUI D%d/%d: %s" % (level, self.debuglevel, message)
-
+        
     def get_level(self):
         """!Return current GUI debug level"""
         return self.debuglevel
-
+    
 # Debug instance
 Debug = DebugMsg()
 
@@ -67,3 +69,4 @@
                 
     for level in range (4):
         Debug.msg (level, "message level=%d" % level)
+    



More information about the grass-commit mailing list