# HG changeset patch # User lbessard # Date 1236957637 -3600 # Node ID bb25a8edd3e4687193a1c900456b0da3fcc07e41 # Parent 8c6589718ce7de59a92341e847f01f9c02767939 Adding expand and collapse when DoubleClick on Types Tree items diff -r 8c6589718ce7 -r bb25a8edd3e4 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":