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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 18 08:04:30 EST 2012


Author: martinl
Date: 2012-02-18 05:04:30 -0800 (Sat, 18 Feb 2012)
New Revision: 50865

Modified:
   grass/trunk/gui/wxpython/gui_core/ghelp.py
Log:
wxGUI/about: simplify python/wxpython version info


Modified: grass/trunk/gui/wxpython/gui_core/ghelp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/ghelp.py	2012-02-18 12:58:02 UTC (rev 50864)
+++ grass/trunk/gui/wxpython/gui_core/ghelp.py	2012-02-18 13:04:30 UTC (rev 50865)
@@ -23,6 +23,7 @@
 import os
 import sys
 import codecs
+import platform
 
 import wx
 from wx.html import HtmlWindow
@@ -453,7 +454,7 @@
                           flag = wx.ALIGN_RIGHT)
         
         infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
-                                               label = sys.version.replace(os.linesep, '')),
+                                               label = platform.python_version()),
                           pos = (row, 1),
                           flag = wx.ALIGN_LEFT)
 
@@ -464,7 +465,7 @@
                           flag = wx.ALIGN_RIGHT)
         
         infoGridSizer.Add(item = wx.StaticText(parent = infoTxt, id = wx.ID_ANY,
-                                               label = wx.version()),
+                                               label = wx.__version__),
                           pos = (row, 1),
                           flag = wx.ALIGN_LEFT)
         



More information about the grass-commit mailing list