equal
deleted
inserted
replaced
261 inputs.insert(0, ("EN","BOOL","none")) |
261 inputs.insert(0, ("EN","BOOL","none")) |
262 outputs.insert(0, ("ENO","BOOL","none")) |
262 outputs.insert(0, ("ENO","BOOL","none")) |
263 self.Pen = MiterPen(self.Colour) |
263 self.Pen = MiterPen(self.Colour) |
264 |
264 |
265 # Extract the inputs properties and create or modify the corresponding connector |
265 # Extract the inputs properties and create or modify the corresponding connector |
|
266 idx = 0 |
266 for idx, (input_name, input_type, input_modifier) in enumerate(inputs): |
267 for idx, (input_name, input_type, input_modifier) in enumerate(inputs): |
267 if idx < len(self.Inputs): |
268 if idx < len(self.Inputs): |
268 connector = self.Inputs[idx] |
269 connector = self.Inputs[idx] |
269 connector.SetName(input_name) |
270 connector.SetName(input_name) |
270 connector.SetType(input_type) |
271 connector.SetType(input_type) |
278 for i in xrange(idx + 1, len(self.Inputs)): |
279 for i in xrange(idx + 1, len(self.Inputs)): |
279 self.Inputs[i].UnConnect(delete = True) |
280 self.Inputs[i].UnConnect(delete = True) |
280 self.Inputs = self.Inputs[:idx + 1] |
281 self.Inputs = self.Inputs[:idx + 1] |
281 |
282 |
282 # Extract the outputs properties and create or modify the corresponding connector |
283 # Extract the outputs properties and create or modify the corresponding connector |
|
284 idx = 0 |
283 for idx, (output_name, output_type, output_modifier) in enumerate(outputs): |
285 for idx, (output_name, output_type, output_modifier) in enumerate(outputs): |
284 if idx < len(self.Outputs): |
286 if idx < len(self.Outputs): |
285 connector = self.Outputs[idx] |
287 connector = self.Outputs[idx] |
286 connector.SetName(output_name) |
288 connector.SetName(output_name) |
287 connector.SetType(output_type) |
289 connector.SetType(output_type) |