[GRASS-SVN] r49752 - in grass/trunk/gui/wxpython: gmodeler gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 14 13:07:28 EST 2011


Author: martinl
Date: 2011-12-14 10:07:27 -0800 (Wed, 14 Dec 2011)
New Revision: 49752

Modified:
   grass/trunk/gui/wxpython/gmodeler/dialogs.py
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: fix import


Modified: grass/trunk/gui/wxpython/gmodeler/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/dialogs.py	2011-12-14 18:02:57 UTC (rev 49751)
+++ grass/trunk/gui/wxpython/gmodeler/dialogs.py	2011-12-14 18:07:27 UTC (rev 49752)
@@ -37,7 +37,7 @@
 from gui_core.ghelp       import SearchModuleWindow
 from gui_core.prompt      import GPromptSTC
 from gui_core.forms       import CmdPanel
-
+from gui_core.gselect     import Select
 from gmodeler.model       import *
 
 from grass.script import task as gtask
@@ -52,8 +52,8 @@
         label, etype = self._getLabel()
         ElementDialog.__init__(self, parent, title, label = label, etype = etype)
                 
-        self.element = gselect.Select(parent = self.panel,
-                                      type = prompt)
+        self.element = Select(parent = self.panel,
+                              type = prompt)
         self.element.SetValue(shape.GetValue())
         
         self.Bind(wx.EVT_BUTTON, self.OnOK,     self.btnOK)

Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2011-12-14 18:02:57 UTC (rev 49751)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2011-12-14 18:07:27 UTC (rev 49752)
@@ -45,7 +45,7 @@
 
 from core             import globalvar
 from core.gcmd        import GError, RunCommand, GMessage
-from gui_core.gselect import ElementSelect, LocationSelect, MapsetSelect, Select, OgrTypeSelect, GdalSelect
+from gui_core.gselect import ElementSelect, LocationSelect, MapsetSelect, Select, OgrTypeSelect, GdalSelect, MapsetSelect
 from gui_core.forms   import GUI
 from core.utils       import GetListOfMapsets, GetLayerNameFromCmd, GetValidLayerName
 from core.settings    import UserSettings
@@ -199,8 +199,8 @@
         else:
             self.SetTitle(self.GetTitle() + ' <%s>' % grass.gisenv()['LOCATION_NAME'])
         
-        self.element = gselect.MapsetSelect(parent = self.panel, id = wx.ID_ANY,
-                                            size = globalvar.DIALOG_GSELECT_SIZE)
+        self.element = MapsetSelect(parent = self.panel, id = wx.ID_ANY,
+                                    size = globalvar.DIALOG_GSELECT_SIZE)
         
         self.PostInit()
         



More information about the grass-commit mailing list