[GRASS-SVN] r31964 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 2 08:45:59 EDT 2008


Author: martinl
Date: 2008-07-02 08:45:58 -0400 (Wed, 02 Jul 2008)
New Revision: 31964

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI: fix vdigit toolbar name


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-07-02 12:36:49 UTC (rev 31963)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-07-02 12:45:58 UTC (rev 31964)
@@ -2446,7 +2446,7 @@
                               BottomDockable(False).TopDockable(True).
                               CloseButton(False).Layer(2))
 
-        if name == "digit":
+        if name == "vdigit":
             self.toolbars['vdigit'] = toolbars.VDigitToolbar(self, self.Map, self.tree)
 
             for toolRow in range(0, self.toolbars['vdigit'].numOfRows):
@@ -2487,7 +2487,7 @@
         # cannot hide main toolbar
         if name == "map":
             return
-        elif name == "digit":
+        elif name == "vdigit":
             # TODO: not destroy only hide
             for toolRow in range(0, self.toolbars['vdigit'].numOfRows):
                 self._mgr.DetachPane (self.toolbars['vdigit'].toolbar[toolRow])

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2008-07-02 12:36:49 UTC (rev 31963)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2008-07-02 12:45:58 UTC (rev 31964)
@@ -195,7 +195,7 @@
         tool =  event.GetString()
 
         if tool == "Digitize" and not self.mapdisplay.toolbars['vdigit']:
-            self.mapdisplay.AddToolbar("digit")
+            self.mapdisplay.AddToolbar("vdigit")
 
 class GRToolbar(AbstractToolbar):
     """
@@ -525,7 +525,7 @@
             self.parent.dialogs['attributes'].OnCancel(None)
 
         # disable the toolbar
-        self.parent.RemoveToolbar ("digit")
+        self.parent.RemoveToolbar ("vdigit")
 
     def OnMoveVertex(self, event):
         """Move line vertex"""



More information about the grass-commit mailing list