[GRASS-SVN] r30166 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 15 13:07:04 EST 2008
Author: martinl
Date: 2008-02-15 13:07:04 -0500 (Fri, 15 Feb 2008)
New Revision: 30166
Modified:
grass/trunk/gui/wxpython/gui_modules/globalvar.py
grass/trunk/gui/wxpython/gui_modules/menuform.py
grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: print error message when no module wx found
Modified: grass/trunk/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/globalvar.py 2008-02-15 15:07:27 UTC (rev 30165)
+++ grass/trunk/gui/wxpython/gui_modules/globalvar.py 2008-02-15 18:07:04 UTC (rev 30166)
@@ -18,7 +18,8 @@
import os
-import wx
+import utils
+utils.ImportWx()
import wx.lib.flatnotebook as FN
"""
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2008-02-15 15:07:27 UTC (rev 30165)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2008-02-15 18:07:04 UTC (rev 30166)
@@ -46,12 +46,13 @@
"""
__version__ ="$Revision$"
-import wx
import sys
import re
import string
import textwrap
+import utils
+utils.ImportWx()
import wx.lib.flatnotebook as FN
import wx.lib.colourselect as csel
import wx.lib.filebrowsebutton as filebrowse
Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py 2008-02-15 15:07:27 UTC (rev 30165)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py 2008-02-15 18:07:04 UTC (rev 30166)
@@ -17,8 +17,6 @@
import os
import sys
-import gcmd
-
def GetTempfile(pref=None):
"""
Creates GRASS temporary file using defined prefix.
@@ -27,7 +25,7 @@
@return Path to file name (string) or None
"""
-
+ import gcmd
tempfileCmd = gcmd.Command(["g.tempfile",
"pid=%d" %
os.getpid()])
More information about the grass-commit
mailing list