[GRASS-SVN] r36285 - in grass/trunk/gui/wxpython: . gui_modules icons

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 9 11:47:51 EDT 2009


Author: martinl
Date: 2009-03-09 11:47:51 -0400 (Mon, 09 Mar 2009)
New Revision: 36285

Modified:
   grass/trunk/gui/wxpython/gis_set.py
   grass/trunk/gui/wxpython/gui_modules/dbm.py
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
   grass/trunk/gui/wxpython/gui_modules/menuform.py
   grass/trunk/gui/wxpython/icons/icon.py
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxversion doesn't work with bundled wxpython cont'ed


Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2009-03-09 15:43:51 UTC (rev 36284)
+++ grass/trunk/gui/wxpython/gis_set.py	2009-03-09 15:47:51 UTC (rev 36285)
@@ -31,7 +31,8 @@
 import gettext
 
 from gui_modules import globalvar
-globalvar.CheckForWx()
+if not os.getenv("GRASS_WXBUNDLED"):
+    globalvar.CheckForWx()
 
 import wx
 import wx.html

Modified: grass/trunk/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm.py	2009-03-09 15:43:51 UTC (rev 36284)
+++ grass/trunk/gui/wxpython/gui_modules/dbm.py	2009-03-09 15:47:51 UTC (rev 36285)
@@ -42,7 +42,8 @@
 gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
 
 import globalvar
-globalvar.CheckForWx()
+if not os.getenv("GRASS_WXBUNDLED"):
+    globalvar.CheckForWx()
 
 import wx
 import wx.lib.mixins.listctrl as listmix

Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2009-03-09 15:43:51 UTC (rev 36284)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2009-03-09 15:47:51 UTC (rev 36285)
@@ -32,7 +32,8 @@
 import copy
 
 import gui_modules.globalvar as globalvar
-globalvar.CheckForWx()
+if not os.getenv("GRASS_WXBUNDLED"):
+    globalvar.CheckForWx()
 import wx
 import wx.aui
 

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-03-09 15:43:51 UTC (rev 36284)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-03-09 15:47:51 UTC (rev 36285)
@@ -60,7 +60,8 @@
 
 
 import globalvar
-globalvar.CheckForWx()
+if not os.getenv("GRASS_WXBUNDLED"):
+    globalvar.CheckForWx()
 
 import wx
 import wx.lib.flatnotebook as FN

Modified: grass/trunk/gui/wxpython/icons/icon.py
===================================================================
--- grass/trunk/gui/wxpython/icons/icon.py	2009-03-09 15:43:51 UTC (rev 36284)
+++ grass/trunk/gui/wxpython/icons/icon.py	2009-03-09 15:47:51 UTC (rev 36285)
@@ -22,7 +22,8 @@
 import sys
 
 import gui_modules.globalvar as globalvar
-globalvar.CheckForWx()
+if not os.getenv("GRASS_WXBUNDLED"):
+    globalvar.CheckForWx()
 import wx
 
 gmPath = os.path.join(os.getenv("GISBASE"), "etc", "wxpython", "gui_modules")

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2009-03-09 15:43:51 UTC (rev 36284)
+++ grass/trunk/gui/wxpython/wxgui.py	2009-03-09 15:47:51 UTC (rev 36285)
@@ -52,7 +52,8 @@
 sys.path.append(gmpath)
 
 import gui_modules.globalvar as globalvar
-globalvar.CheckForWx()
+if not os.getenv("GRASS_WXBUNDLED"):
+    globalvar.CheckForWx()
 
 import wx
 import wx.aui



More information about the grass-commit mailing list