- EVT_TREE_ITEM_EXPANDED (self, tID, self.OnItemExpanded)
- EVT_TREE_ITEM_COLLAPSED (self, tID, self.OnItemCollapsed)
- EVT_TREE_SEL_CHANGED (self, tID, self.OnSelChanged)
- EVT_TREE_BEGIN_LABEL_EDIT(self, tID, self.OnBeginEdit)
- EVT_TREE_END_LABEL_EDIT (self, tID, self.OnEndEdit)
- EVT_TREE_ITEM_ACTIVATED (self, tID, self.OnActivate)
+ self.Bind(wx.EVT_TREE_ITEM_EXPANDED, self.OnItemExpanded, self.tree)
+ self.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.OnItemCollapsed, self.tree)
+ self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged, self.tree)
+ self.Bind(wx.EVT_TREE_BEGIN_LABEL_EDIT, self.OnBeginEdit, self.tree)
+ self.Bind(wx.EVT_TREE_END_LABEL_EDIT, self.OnEndEdit, self.tree)
+ self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnActivate, self.tree)
+
+ self.tree.Bind(wx.EVT_LEFT_DCLICK, self.OnLeftDClick)
+ self.tree.Bind(wx.EVT_RIGHT_DOWN, self.OnRightClick)
+ self.tree.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)