equal
deleted
inserted
replaced
250 outputs = [output for output in blocktype["outputs"]] |
250 outputs = [output for output in blocktype["outputs"]] |
251 if blocktype["extensible"]: |
251 if blocktype["extensible"]: |
252 start = int(inputs[-1][0].replace("IN", "")) |
252 start = int(inputs[-1][0].replace("IN", "")) |
253 for i in xrange(self.Extension - len(blocktype["inputs"])): |
253 for i in xrange(self.Extension - len(blocktype["inputs"])): |
254 start += 1 |
254 start += 1 |
255 inputs.append(("IN%d"%start, inputs[-1][1], inputs[-1][2])) |
255 inputs.append(("IN%d" % start, inputs[-1][1], inputs[-1][2])) |
256 comment = blocktype["comment"] |
256 comment = blocktype["comment"] |
257 self.Description = _(comment) + blocktype.get("usage", "") |
257 self.Description = _(comment) + blocktype.get("usage", "") |
258 else: |
258 else: |
259 self.Colour = wx.RED |
259 self.Colour = wx.RED |
260 inputs = connectors.get("inputs", []) |
260 inputs = connectors.get("inputs", []) |