--- a/graphics/LD_Objects.py Tue Jan 29 11:09:49 2008 +0100
+++ b/graphics/LD_Objects.py Tue Jan 29 18:30:47 2008 +0100
@@ -54,8 +54,8 @@
self.Connectors = []
# Make a clone of this LD_PowerRail
- def Clone(self, id = None, pos = None):
- powerrail = LD_PowerRail(self.Parent, self.Type, id)
+ def Clone(self, parent, id = None, pos = None):
+ powerrail = LD_PowerRail(parent, self.Type, id)
powerrail.SetSize(self.Size[0], self.Size[1])
if pos is not None:
powerrail.SetPosition(pos.x, pos.y)
@@ -378,8 +378,8 @@
self.Output = None
# Make a clone of this LD_Contact
- def Clone(self, id = None, pos = None):
- contact = LD_Contact(self.Parent, self.Type, self.Name, id)
+ def Clone(self, parent, id = None, pos = None):
+ contact = LD_Contact(parent, self.Type, self.Name, id)
contact.SetSize(self.Size[0], self.Size[1])
if pos is not None:
contact.SetPosition(pos.x, pos.y)
@@ -608,8 +608,8 @@
self.Output = None
# Make a clone of this LD_Coil
- def Clone(self, id = None, pos = None):
- coil = LD_Coil(self.Parent, self.Type, self.Name, id)
+ def Clone(self, parent, id = None, pos = None):
+ coil = LD_Coil(parent, self.Type, self.Name, id)
coil.SetSize(self.Size[0], self.Size[1])
if pos is not None:
coil.SetPosition(pos.x, pos.y)