[GRASS-SVN] r50866 -
grass/branches/develbranch_6/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 18 08:05:47 EST 2012
Author: martinl
Date: 2012-02-18 05:05:47 -0800 (Sat, 18 Feb 2012)
New Revision: 50866
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_core/ghelp.py
Log:
wxGUI/about: simplify python/wxpython version info
(merge r50865 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/ghelp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/ghelp.py 2012-02-18 13:04:30 UTC (rev 50865)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/ghelp.py 2012-02-18 13:05:47 UTC (rev 50866)
@@ -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