*** empty log message ***
authorlbessard
Sat, 21 Jul 2007 01:47:04 +0200
changeset 54 6688829ce624
parent 53 4988262d03e3
child 55 e24d2f917c7e
*** empty log message ***
PLCOpenEditor.py
Viewer.py
--- 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)