[GRASS-SVN] r56584 - grass/branches/develbranch_6/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 4 01:27:17 PDT 2013


Author: annakrat
Date: 2013-06-04 01:27:17 -0700 (Tue, 04 Jun 2013)
New Revision: 56584

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: fix next issue in #1987 (merge from trunk, r56582)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py	2013-06-04 08:25:22 UTC (rev 56583)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py	2013-06-04 08:27:17 UTC (rev 56584)
@@ -169,29 +169,17 @@
                                    |wx.TR_FULL_ROW_HIGHLIGHT)
         self.seltree.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
         self.seltree.Bind(wx.EVT_MOTION, self.OnMotion)
-        self.seltree.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
-        self.seltree.Bind(wx.EVT_TREE_ITEM_EXPANDING, self.mapsetExpanded)
-        self.seltree.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.mapsetCollapsed)
-        self.seltree.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.mapsetActivated)
-        self.seltree.Bind(wx.EVT_TREE_SEL_CHANGED, self.mapsetSelected)
+        self.seltree.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)        
+        # the following dummy handler are needed to keep tree events
+        # from propagating up to the parent GIS Manager layer tree
+        self.seltree.Bind(wx.EVT_TREE_ITEM_EXPANDING, lambda x: None)
+        self.seltree.Bind(wx.EVT_TREE_ITEM_COLLAPSED, lambda x: None)
+        self.seltree.Bind(wx.EVT_TREE_ITEM_ACTIVATED, lambda x: None)
+        self.seltree.Bind(wx.EVT_TREE_SEL_CHANGED, lambda x: None)
         self.seltree.Bind(wx.EVT_TREE_DELETE_ITEM, lambda x: None)
         self.seltree.Bind(wx.EVT_TREE_BEGIN_DRAG, lambda x: None)
-        
-    # the following dummy handler are needed to keep tree events from propagating up to
-    # the parent GIS Manager layer tree
-    def mapsetExpanded(self, event):
-        pass
+        self.seltree.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, lambda x: None)
 
-    def mapsetCollapsed(self, event):
-        pass
-
-    def mapsetActivated(self, event):
-        pass
-
-    def mapsetSelected(self, event):
-        pass
-    # end of dummy events
-
     def GetControl(self):
         return self.seltree
 



More information about the grass-commit mailing list