[GRASS-SVN] r54818 - in grass/trunk/gui/wxpython: gui_core lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 30 06:50:11 PST 2013


Author: martinl
Date: 2013-01-30 06:50:10 -0800 (Wed, 30 Jan 2013)
New Revision: 54818

Modified:
   grass/trunk/gui/wxpython/gui_core/ghelp.py
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: show 'build date' in about window and system info


Modified: grass/trunk/gui/wxpython/gui_core/ghelp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/ghelp.py	2013-01-30 14:47:13 UTC (rev 54817)
+++ grass/trunk/gui/wxpython/gui_core/ghelp.py	2013-01-30 14:50:10 UTC (rev 54818)
@@ -128,7 +128,7 @@
 
         row += 2
         infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
-                                               label = '%s:' % _('SVN Revision')),
+                                               label = '%s:' % _('Code Revision')),
                           pos = (row, 0),
                           flag = wx.ALIGN_RIGHT)
         
@@ -139,15 +139,27 @@
         
         row += 1
         infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
-                                               label = '%s:' % _('GIS Library Revision')),
+                                               label = '%s:' % _('Build Date')),
                           pos = (row, 0),
                           flag = wx.ALIGN_RIGHT)
         
         infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
-                                               label = vInfo['libgis_revision'] + ' (' +
-                                               vInfo['libgis_date'].split(' ')[0] + ')'),
+                                               label = vInfo['build_date']),
                           pos = (row, 1),
                           flag = wx.ALIGN_LEFT)
+        
+        ### show only basic info
+        # row += 1
+        # infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
+        #                                        label = '%s:' % _('GIS Library Revision')),
+        #                   pos = (row, 0),
+        #                   flag = wx.ALIGN_RIGHT)
+        
+        # infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
+        #                                        label = vInfo['libgis_revision'] + ' (' +
+        #                                        vInfo['libgis_date'].split(' ')[0] + ')'),
+        #                   pos = (row, 1),
+        #                   flag = wx.ALIGN_LEFT)
 
         row += 2
         infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2013-01-30 14:47:13 UTC (rev 54817)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2013-01-30 14:50:10 UTC (rev 54818)
@@ -7,7 +7,7 @@
 Classes:
  - frame::GMFrame
 
-(C) 2006-2012 by the GRASS Development Team
+(C) 2006-2013 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.
@@ -923,22 +923,24 @@
         
         self._gconsole.WriteCmdLog(_("System Info"))
         self._gconsole.WriteLog("%s: %s\n"
-                              "%s: %s\n"
-                              "%s: %s (%s)\n"
-                              "GDAL/OGR: %s\n"
-                              "PROJ.4: %s\n"
-                              "GEOS: %s\n"
-                              "SQLite: %s\n"
-                              "Python: %s\n"
-                              "wxPython: %s\n"
-                              "%s: %s%s\n"% (_("GRASS version"), vInfo['version'],
-                                           _("GRASS SVN Revision"), vInfo['revision'],
-                                           _("GIS Library Revision"), vInfo['libgis_revision'], vInfo['libgis_date'].split(' ', 1)[0],
-                                           vInfo['gdal'], vInfo['proj4'], vInfo['geos'], vInfo['sqlite'],
-                                           platform.python_version(),
-                                           wx.__version__,
-                                           _("Platform"), platform.platform(), osgeo4w),
-                              priority = 2)
+                                "%s: %s\n"
+                                "%s: %s\n"
+                                "%s: %s (%s)\n"
+                                "GDAL/OGR: %s\n"
+                                "PROJ.4: %s\n"
+                                "GEOS: %s\n"
+                                "SQLite: %s\n"
+                                "Python: %s\n"
+                                "wxPython: %s\n"
+                                "%s: %s%s\n"% (_("GRASS version"), vInfo['version'],
+                                               _("GRASS SVN Revision"), vInfo['revision'],
+                                               _("Build Date"), vInfo['build_date'],
+                                               _("GIS Library Revision"), vInfo['libgis_revision'], vInfo['libgis_date'].split(' ', 1)[0],
+                                               vInfo['gdal'], vInfo['proj4'], vInfo['geos'], vInfo['sqlite'],
+                                               platform.python_version(),
+                                               wx.__version__,
+                                               _("Platform"), platform.platform(), osgeo4w),
+                                priority = 2)
         self._gconsole.WriteCmdLog(' ')
     
     def OnAboutGRASS(self, event):



More information about the grass-commit mailing list