فهرست منبع

wxGUI major code reorganization (minor fixes)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49371 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 سال پیش
والد
کامیت
47715e9a20
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      gui/wxpython/wxgui.py

+ 3 - 2
gui/wxpython/wxgui.py

@@ -74,6 +74,7 @@ from modules.extensions    import InstallExtensionWindow
 from lmgr.toolbars         import LMWorkspaceToolbar, LMDataToolbar, LMToolsToolbar
 from lmgr.toolbars         import LMMiscToolbar, LMVectorToolbar, LMNvizToolbar
 from lmgr.pyshell          import PyShellWindow
+from gui_core.forms        import GUI
 
 class GMFrame(wx.Frame):
     """!Layer Manager frame with notebook widget for controlling GRASS
@@ -511,7 +512,7 @@ class GMFrame(wx.Frame):
         if layer and len(cmdlist) == 1: # only if no paramaters given
             if (type == 'raster' and cmdlist[0][0] == 'r' and cmdlist[0][1] != '3') or \
                     (type == 'vector' and cmdlist[0][0] == 'v'):
-                input = menuform.GUI().GetCommandInputMapParamKey(cmdlist[0])
+                input = GUI().GetCommandInputMapParamKey(cmdlist[0])
                 if input:
                     cmdlist.append("%s=%s" % (input, name))
         
@@ -527,7 +528,7 @@ class GMFrame(wx.Frame):
         """!Parse command selected from menu"""
         if event:
             cmd = self.GetMenuCmd(event)
-        menuform.GUI(parent = self).ParseCommand(cmd)
+        GUI(parent = self).ParseCommand(cmd)
         
     def OnVDigit(self, event):
         """!Start vector digitizer