Bug on Project Tree event fixed
authorlbessard
Mon, 10 Dec 2007 11:13:25 +0100
changeset 132 3aaf349203bc
parent 131 bc534997aecc
child 133 960b8e7f71bb
Bug on Project Tree event fixed
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Mon Dec 10 11:07:18 2007 +0100
+++ b/PLCOpenEditor.py	Mon Dec 10 11:13:25 2007 +0100
@@ -364,7 +364,7 @@
         if wx.Platform == '__WXMSW__':
             self.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, self.OnProjectTreeRightUp,
                   id=ID_PLCOPENEDITORPROJECTTREE)
-            self.Bind(wx.EVT_TREE_ITEM_CHANGED, self.OnProjectTreeItemSelected,
+            self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnProjectTreeItemSelected,
                   id=ID_PLCOPENEDITORPROJECTTREE)
         else:
             if wx.VERSION >= (2, 6, 0):