[GRASS-SVN] r30015 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 8 11:31:29 EST 2008
Author: martinl
Date: 2008-02-08 11:31:29 -0500 (Fri, 08 Feb 2008)
New Revision: 30015
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: Import module 'location_wizard' only if needed. Importing module outside of the function causes crashing start-up screen.
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2008-02-08 13:03:34 UTC (rev 30014)
+++ grass/trunk/gui/wxpython/gis_set.py 2008-02-08 16:31:29 UTC (rev 30015)
@@ -32,8 +32,6 @@
import wx.lib.rcsizer as rcs
import wx.lib.filebrowsebutton as filebrowse
-from gui_modules import location_wizard
-
class GRASSStartup(wx.Frame):
"""GRASS start-up screen"""
def __init__(self, parent=None, id=wx.ID_ANY, style=wx.DEFAULT_FRAME_STYLE):
@@ -370,7 +368,7 @@
def OnWizard(self, event):
"""Location wizard started"""
- reload(location_wizard)
+ from gui_modules import location_wizard
gWizard = location_wizard.LocationWizard(self, self.tgisdbase.GetValue())
if gWizard.location != None:
self.OnSetDatabase(event)
More information about the grass-commit
mailing list