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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 7 12:31:08 EDT 2011


Author: martinl
Date: 2011-06-07 09:31:07 -0700 (Tue, 07 Jun 2011)
New Revision: 46588

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI/pref: add dox strings for _readFile()


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2011-06-07 16:27:56 UTC (rev 46587)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2011-06-07 16:31:07 UTC (rev 46588)
@@ -690,7 +690,11 @@
                                                 key = 'font', subkey = 'encoding')
         
     def _readFile(self, filename, settings = None):
-        """!Read settings from file to dict"""
+        """!Read settings from file to dict
+
+        @param filename settings file path
+        @param settings dict where to store settings (None for self.userSettings)
+        """
         if settings is None:
             settings = self.userSettings
         
@@ -732,7 +736,7 @@
             fd.close()
         
         fd.close()
-
+        
     def SaveToFile(self, settings = None):
         """!Save settings to the file"""
         if settings is None:



More information about the grass-commit mailing list