graphics/GraphicCommons.py
changeset 162 e746ff4aa8be
parent 155 b695f7459ef6
child 165 e464a4e4e06d
--- a/graphics/GraphicCommons.py	Tue Jan 29 11:09:49 2008 +0100
+++ b/graphics/GraphicCommons.py	Tue Jan 29 18:30:47 2008 +0100
@@ -303,8 +303,8 @@
         return self.Dragging
     
     # Make a clone of this element
-    def Clone(self):
-        return Graphic_Element(self.Parent, self.Id)
+    def Clone(self, parent):
+        return Graphic_Element(parent, self.Id)
     
     # Changes the block position
     def SetPosition(self, x, y):
@@ -636,12 +636,12 @@
                     self.WireExcluded.append(element)
     
     # Make a clone of this group
-    def Clone(self):
-        clone = Graphic_Group(self.Parent)
+    def Clone(self, parent):
+        clone = Graphic_Group(parent)
         elements = []
         # Makes a clone of all the elements in this group
         for element in self.Elements:
-            elements.append(element.Clone())
+            elements.append(element.Clone(parent))
         clone.SetElements(elements)
         return clone
     
@@ -2038,8 +2038,8 @@
         self.Size = wx.Size(0, 0)
     
     # Make a clone of this comment
-    def Clone(self, id = None, pos = None):
-        comment = Comment(self.Parent, self.Content, id)
+    def Clone(self, parent, id = None, pos = None):
+        comment = Comment(parent, self.Content, id)
         if pos is not None:
             comment.SetPosition(pos.x, pos.y)
         comment.SetSize(self.Size[0], self.Size[1])