[GRASS-SVN] r36287 - in
grass/branches/releasebranch_6_4/gui/wxpython: . gui_modules icons
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 9 12:07:03 EDT 2009
Author: martinl
Date: 2009-03-09 12:07:03 -0400 (Mon, 09 Mar 2009)
New Revision: 36287
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py
grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
Log:
wxversion doesn't work with bundled wxpython cont'ed
(merge from trunk, r36285)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py 2009-03-09 15:57:57 UTC (rev 36286)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py 2009-03-09 16:07:03 UTC (rev 36287)
@@ -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/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py 2009-03-09 15:57:57 UTC (rev 36286)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py 2009-03-09 16:07:03 UTC (rev 36287)
@@ -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/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py 2009-03-09 15:57:57 UTC (rev 36286)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py 2009-03-09 16:07:03 UTC (rev 36287)
@@ -35,12 +35,13 @@
import tempfile
import copy
+import globalvar
+if not os.getenv("GRASS_WXBUNDLED"):
+ globalvar.CheckForWx()
import wx
import wx.aui
from threading import Thread
-
-import globalvar
try:
import subprocess
except:
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2009-03-09 15:57:57 UTC (rev 36286)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2009-03-09 16:07:03 UTC (rev 36287)
@@ -58,9 +58,9 @@
import gettext
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.flatnotebook as FN
Modified: grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py 2009-03-09 15:57:57 UTC (rev 36286)
+++ grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py 2009-03-09 16:07:03 UTC (rev 36287)
@@ -21,15 +21,15 @@
import os
import sys
-import wxversion
-wxversion.select('2.8')
-import wx
-
gmPath = os.path.join(os.getenv("GISBASE"), "etc", "wxpython", "gui_modules")
sys.path.append(gmPath)
import grassenv
import globalvar
+if not os.getenv("GRASS_WXBUNDLED"):
+ globalvar.CheckForWx()
+import wx
+
from preferences import globalSettings as UserSettings
import grass_icons # default icon set
Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py 2009-03-09 15:57:57 UTC (rev 36286)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py 2009-03-09 16:07:03 UTC (rev 36287)
@@ -51,7 +51,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