[GRASS-SVN] r56582 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 4 01:18:46 PDT 2013


Author: annakrat
Date: 2013-06-04 01:18:46 -0700 (Tue, 04 Jun 2013)
New Revision: 56582

Modified:
   grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: fix next issue in #1987

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2013-06-04 08:18:13 UTC (rev 56581)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2013-06-04 08:18:46 UTC (rev 56582)
@@ -174,28 +174,17 @@
                                    |wx.TR_FULL_ROW_HIGHLIGHT)
         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.OnExpanded)
-        self.seltree.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.OnCollapsed)
-        self.seltree.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnActivated)
-        self.seltree.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelected)
+        # 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)
+        self.seltree.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, lambda x: None)
         
-    # the following dummy handler are needed to keep tree events from propagating up to
-    # the parent GIS Manager layer tree
-    def OnExpanded(self, event):
-        pass
 
-    def OnCollapsed(self, event):
-        pass
-
-    def OnActivated(self, event):
-        pass
-
-    def OnSelected(self, event):
-        pass
-    # end of dummy events
-
     def GetControl(self):
         return self.seltree
 



More information about the grass-commit mailing list