瀏覽代碼

wxGUI/about: simplify python/wxpython version info

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50865 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
bb54db447f
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      gui/wxpython/gui_core/ghelp.py

+ 3 - 2
gui/wxpython/gui_core/ghelp.py

@@ -23,6 +23,7 @@ This program is free software under the GNU General Public License
 import os
 import sys
 import codecs
+import platform
 
 import wx
 from wx.html import HtmlWindow
@@ -453,7 +454,7 @@ class AboutWindow(wx.Frame):
                           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 @@ class AboutWindow(wx.Frame):
                           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)