Browse Source

wxGUI: fix import

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49752 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
90f8ee3c29
2 changed files with 6 additions and 6 deletions
  1. 3 3
      gui/wxpython/gmodeler/dialogs.py
  2. 3 3
      gui/wxpython/gui_core/dialogs.py

+ 3 - 3
gui/wxpython/gmodeler/dialogs.py

@@ -37,7 +37,7 @@ from gui_core.dialogs     import ElementDialog, MapLayersDialog
 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 @@ class ModelDataDialog(ElementDialog):
         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)

+ 3 - 3
gui/wxpython/gui_core/dialogs.py

@@ -45,7 +45,7 @@ from grass.script import task as gtask
 
 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 @@ class MapsetDialog(ElementDialog):
         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()