--- a/PLCOpenEditor.py Sat Jul 21 01:20:00 2007 +0200
+++ b/PLCOpenEditor.py Sat Jul 21 01:47:04 2007 +0200
@@ -791,7 +791,7 @@
block_name = self.ProjectTree.GetItemText(item)
block_type = self.Controler.GetPouType(block_name)
if block_type != "program":
- data = wxTextDataObject(str((block_name, block_type)))
+ data = wxTextDataObject(str((block_name, block_type, "")))
dragSource = wxDropSource(self.ProjectTree)
dragSource.SetData(data)
dragSource.DoDragDrop()
--- a/Viewer.py Sat Jul 21 01:20:00 2007 +0200
+++ b/Viewer.py Sat Jul 21 01:47:04 2007 +0200
@@ -56,7 +56,7 @@
values = eval(data)
if values[1] in ["function", "functionBlock", "program"]:
id = self.Parent.GetNewId()
- block = FBD_Block(self.Parent, values[0], "", id)
+ block = FBD_Block(self.Parent, values[0], values[2], id)
block.SetPosition(x, y)
width, height = block.GetMinSize()
block.SetSize(width, height)