--- a/PLCOpenEditor.py Mon Dec 10 11:20:05 2007 +0100
+++ b/PLCOpenEditor.py Mon Dec 10 15:20:11 2007 +0100
@@ -1217,7 +1217,7 @@
config_name = self.ProjectTree.GetItemText(item)
self.EditProjectElement(data, self.Controler.ComputeConfigurationResourceName(config_name, name), True)
elif data in [ITEM_TRANSITION, ITEM_ACTION]:
- item = self.ProjectTree.GetItemParent(select_Item)
+ item = self.ProjectTree.GetItemParent(select_item)
item_type = self.ProjectTree.GetPyData(item)
while item_type != ITEM_POU:
item = self.ProjectTree.GetItemParent(item)
@@ -3211,6 +3211,7 @@
data = wx.TextDataObject(str((var_name, var_class, var_type, self.TagName)))
dragSource = wx.DropSource(self.VariablesGrid)
dragSource.SetData(data)
+ dragSource.DoDragDrop()
event.Skip()
def OnVariablesGridSelectCell(self, event):