Bug on variable Drag and Drop fixed
authorlbessard
Mon, 10 Dec 2007 15:20:11 +0100
changeset 135 d24ce0800ac6
parent 134 6715fd958477
child 136 858ff1a52d20
Bug on variable Drag and Drop fixed
PLCOpenEditor.py
--- 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):