equal
deleted
inserted
replaced
74 self.Input.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE) |
74 self.Input.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE) |
75 if self.Output: |
75 if self.Output: |
76 self.Output.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE) |
76 self.Output.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE) |
77 if self.Action: |
77 if self.Action: |
78 self.Action.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE) |
78 self.Action.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE) |
|
79 |
|
80 # Add output connector to step |
|
81 def AddInput(self): |
|
82 if not self.Input: |
|
83 self.Input = Connector(self, "", "ANY", wx.Point(self.Size[0] / 2, 0), NORTH) |
|
84 self.RefreshBoundingBox() |
|
85 |
|
86 # Remove output connector from step |
|
87 def RemoveInput(self): |
|
88 if self.Input: |
|
89 self.Input.UnConnect() |
|
90 self.Input = None |
|
91 self.RefreshBoundingBox() |
79 |
92 |
80 # Add output connector to step |
93 # Add output connector to step |
81 def AddOutput(self): |
94 def AddOutput(self): |
82 if not self.Output: |
95 if not self.Output: |
83 self.Output = Connector(self, "", "ANY", wx.Point(self.Size[0] / 2, self.Size[1]), SOUTH) |
96 self.Output = Connector(self, "", "ANY", wx.Point(self.Size[0] / 2, self.Size[1]), SOUTH) |