[GRASS-SVN] r57143 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 15 04:22:27 PDT 2013


Author: annakrat
Date: 2013-07-15 04:22:27 -0700 (Mon, 15 Jul 2013)
New Revision: 57143

Modified:
   grass/trunk/gui/wxpython/gui_core/ghelp.py
Log:
wxGUI: add grass dev team to about window's info page

Modified: grass/trunk/gui/wxpython/gui_core/ghelp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/ghelp.py	2013-07-15 11:13:56 UTC (rev 57142)
+++ grass/trunk/gui/wxpython/gui_core/ghelp.py	2013-07-15 11:22:27 UTC (rev 57143)
@@ -108,11 +108,15 @@
                       flag = wx.ALL | wx.ALIGN_CENTER, border = 20)
         
         info = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
-                             label = 'GRASS GIS ' + vInfo['version'] + '\n\n')
+                             label = 'GRASS GIS ' + vInfo['version'] + '\n')
         info.SetFont(wx.Font(13, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))
         info.SetForegroundColour(wx.Colour(35, 142, 35))
         infoSizer.Add(item = info, proportion = 0,
                       flag = wx.BOTTOM | wx.ALIGN_CENTER, border = 1)
+
+        team = wx.StaticText(parent=infoTxt, label=_grassDevTeam(1999) + '\n')
+        infoSizer.Add(item = team, proportion = 0,
+                      flag = wx.BOTTOM | wx.ALIGN_CENTER, border = 1)
         
         row = 0
         infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
@@ -786,9 +790,12 @@
     info.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
     info.SetName(prgName)
     info.SetWebSite('http://grass.osgeo.org')
-    year = grass.version()['date']
-    info.SetDescription('%(c)s %(start)s-%(end)s by the GRASS Development Team\n\n' % {'c': unichr(169), 'start': startYear, 'end': year} +
+    info.SetDescription(_grassDevTeam(startYear) + '\n\n' +
                         '\n'.join(textwrap.wrap('This program is free software under the GNU General Public License'
                                                 '(>=v2). Read the file COPYING that comes with GRASS for details.', 75)))
     
     wx.AboutBox(info)
+
+def _grassDevTeam(start):
+    end = grass.version()['date']
+    return '%(c)s %(start)s-%(end)s by the GRASS Development Team' % {'c': unichr(169), 'start': start, 'end': end}



More information about the grass-commit mailing list