--- a/controls/DebugVariablePanel.py Tue Dec 11 01:17:52 2012 +0100
+++ b/controls/DebugVariablePanel.py Tue Dec 11 01:19:42 2012 +0100
@@ -457,7 +457,7 @@
def OnVariablesGridCellLeftClick(self, event):
- data = wx.TextDataObject(str(self.Table.GetValueByName(row, "Variable")))
+ data = wx.TextDataObject(str((self.Table.GetValueByName(row, "Variable"), "debug"))) dragSource = wx.DropSource(self.VariablesGrid)
--- a/controls/PouInstanceVariablesPanel.py Tue Dec 11 01:17:52 2012 +0100
+++ b/controls/PouInstanceVariablesPanel.py Tue Dec 11 01:19:42 2012 +0100
@@ -329,6 +329,17 @@
def OnVariablesListLeftDown(self, event):
if self.InstanceChoice.GetSelection() == -1:
wx.CallAfter(self.ShowInstanceChoicePopup)
+ instance_path = self.InstanceChoice.GetStringSelection() + item, flags = self.VariablesList.HitTest(event.GetPosition()) + if item is not None and flags & CT.TREE_HITTEST_ONITEMLABEL: + item_infos = self.VariablesList.GetPyData(item) + if item_infos is not None and item_infos["class"] in ITEMS_VARIABLE: + item_path = "%s.%s" % (instance_path, item_infos["name"]) + data = wx.TextDataObject(str((item_path, "debug"))) + dragSource = wx.DropSource(self.VariablesList) + dragSource.SetData(data) + dragSource.DoDragDrop() def OnInstanceChoiceLeftDown(self, event):