graphics/SFC_Objects.py
changeset 162 e746ff4aa8be
parent 154 203c4acdaf27
child 165 e464a4e4e06d
--- a/graphics/SFC_Objects.py	Tue Jan 29 11:09:49 2008 +0100
+++ b/graphics/SFC_Objects.py	Tue Jan 29 18:30:47 2008 +0100
@@ -65,8 +65,8 @@
         self.Action = None
     
     # Make a clone of this SFC_Step
-    def Clone(self, id = None, name = "Step", pos = None):
-        step = SFC_Step(self.Parent, name, self.Initial, id)
+    def Clone(self, parent, id = None, name = "Step", pos = None):
+        step = SFC_Step(parent, name, self.Initial, id)
         step.SetSize(self.Size[0], self.Size[1])
         if pos is not None:
             step.SetPosition(pos.x, pos.y)
@@ -509,8 +509,8 @@
             self.Condition = None
     
     # Make a clone of this SFC_Transition
-    def Clone(self, id = None, pos = None):
-        transition = SFC_Transition(self.Parent, self.Type, self.Condition, self.Priority, id)
+    def Clone(self, parent, id = None, pos = None):
+        transition = SFC_Transition(parent, self.Type, self.Condition, self.Priority, id)
         transition.SetSize(self.Size[0], self.Size[1])
         if pos is not None:
             transition.SetPosition(pos.x, pos.y)
@@ -878,8 +878,8 @@
         self.Outputs = []
     
     # Make a clone of this SFC_Divergence
-    def Clone(self, id = None, pos = None):
-        divergence = SFC_Divergence(self.Parent, self.Type, max(len(self.Inputs), len(self.Outputs)), id)
+    def Clone(self, parent, id = None, pos = None):
+        divergence = SFC_Divergence(parent, self.Type, max(len(self.Inputs), len(self.Outputs)), id)
         divergence.SetSize(self.Size[0], self.Size[1])
         if pos is not None:
             divergence.SetPosition(pos.x, pos.y)
@@ -1292,8 +1292,8 @@
         self.Input = None
     
     # Make a clone of this SFC_Jump
-    def Clone(self, id = None, pos = None):
-        jump = SFC_Jump(self.Parent, self.Target, id)
+    def Clone(self, parent, id = None, pos = None):
+        jump = SFC_Jump(parent, self.Target, id)
         jump.SetSize(self.Size[0], self.Size[1])
         if pos is not None:
             jump.SetPosition(pos.x, pos.y)
@@ -1501,9 +1501,9 @@
         self.Input = None
     
     # Make a clone of this SFC_ActionBlock
-    def Clone(self, id = None, pos = None):
+    def Clone(self, parent, id = None, pos = None):
         actions = [action.copy() for action in self.Actions]
-        action_block = SFC_ActionBlock(self.Parent, actions, id)
+        action_block = SFC_ActionBlock(parent, actions, id)
         action_block.SetSize(self.Size[0], self.Size[1])
         if pos is not None:
             action_block.SetPosition(pos.x, pos.y)