Kaynağa Gözat

wxGUI: AboutWindow/AboutSystem - show build platform

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59294 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 yıl önce
ebeveyn
işleme
95d8d2fad5
2 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 4 1
      gui/wxpython/gui_core/ghelp.py
  2. 2 0
      gui/wxpython/lmgr/frame.py

+ 4 - 1
gui/wxpython/gui_core/ghelp.py

@@ -111,8 +111,11 @@ class AboutWindow(wx.Frame):
         infoSizer.Add(item = logoBitmap, proportion = 0,
                       flag = wx.ALL | wx.ALIGN_CENTER, border = 20)
         
+        infoLabel = 'GRASS GIS %s' % vInfo.get('version', _('unknown version'))
+        if '64' in vInfo.get('build_platform', ''):
+            infoLabel += ' (64bit)'
         info = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
-                             label = 'GRASS GIS ' + vInfo.get('version', _('unknown version')) + '\n')
+                             label = infoLabel + os.linesep)
         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,

+ 2 - 0
gui/wxpython/lmgr/frame.py

@@ -996,6 +996,7 @@ class GMFrame(wx.Frame):
         self._gconsole.WriteLog("%s: %s\n"
                                 "%s: %s\n"
                                 "%s: %s\n"
+                                "%s: %s\n"
                                 # "%s: %s (%s)\n"
                                 "GDAL/OGR: %s\n"
                                 "PROJ.4: %s\n"
@@ -1006,6 +1007,7 @@ class GMFrame(wx.Frame):
                                 "%s: %s%s\n"% (_("GRASS version"), vInfo.get('version', _('unknown version')),
                                                _("GRASS SVN Revision"), vInfo.get('revision', '?'),
                                                _("Build Date"), vInfo.get('build_date', '?'),
+                                               _("Build Platform"), vInfo.get('build_platform', '?'),
                                                # _("GIS Library Revision"), vInfo.get('libgis_revision'], vInfo.get('libgis_date'].split(' ', 1)[0],
                                                vInfo.get('gdal', '?'), vInfo.get('proj4', '?'), vInfo.get('geos', '?'), vInfo.get('sqlite', '?'),
                                                platform.python_version(),