[GRASS-SVN] r49371 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Nov 26 18:19:59 EST 2011


Author: martinl
Date: 2011-11-26 15:19:59 -0800 (Sat, 26 Nov 2011)
New Revision: 49371

Modified:
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI major code reorganization (minor fixes)


Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2011-11-26 22:46:19 UTC (rev 49370)
+++ grass/trunk/gui/wxpython/wxgui.py	2011-11-26 23:19:59 UTC (rev 49371)
@@ -74,6 +74,7 @@
 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 @@
         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 @@
         """!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



More information about the grass-commit mailing list