editors/TextViewer.py
changeset 1775 b45f2768fab1
parent 1773 38fde37c3766
child 1780 c52d1460cea8
equal deleted inserted replaced
1774:ac0fe8aabb5e 1775:b45f2768fab1
   497                 for blocktype in category["list"]:
   497                 for blocktype in category["list"]:
   498                     blockname = blocktype["name"].upper()
   498                     blockname = blocktype["name"].upper()
   499                     if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys():
   499                     if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys():
   500                         interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != ''])
   500                         interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != ''])
   501                         for param in ["EN", "ENO"]:
   501                         for param in ["EN", "ENO"]:
   502                             if not param in interface:
   502                             if param not in interface:
   503                                 interface[param] = {}
   503                                 interface[param] = {}
   504                         if blockname in self.Functions:
   504                         if blockname in self.Functions:
   505                             self.Functions[blockname]["interface"].update(interface)
   505                             self.Functions[blockname]["interface"].update(interface)
   506                             self.Functions[blockname]["extensible"] |= blocktype["extensible"]
   506                             self.Functions[blockname]["extensible"] |= blocktype["extensible"]
   507                         else:
   507                         else: