Adding expand and collapse when DoubleClick on Types Tree items
authorlbessard
Fri, 13 Mar 2009 16:20:37 +0100
changeset 317 bb25a8edd3e4
parent 316 8c6589718ce7
child 318 2a5421d0f286
Adding expand and collapse when DoubleClick on Types Tree items
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Thu Mar 05 16:57:25 2009 +0100
+++ b/PLCOpenEditor.py	Fri Mar 13 16:20:37 2009 +0100
@@ -1477,10 +1477,6 @@
     
     def OnTypesTreeItemActivated(self, event):
         selected = event.GetItem()
-        if self.TypesTree.IsExpanded(selected):
-            self.TypesTree.Collapse(selected)
-        else:
-            self.TypesTree.Expand(selected)
         name = self.TypesTree.GetItemText(selected)
         data = self.TypesTree.GetPyData(selected)
         if name == "Properties":