graphics/GraphicCommons.py
changeset 1754 63f4af6bf6d9
parent 1752 d14ff9d7eb76
child 1758 845ca626db09
equal deleted inserted replaced
1753:19f19c66b67e 1754:63f4af6bf6d9
  1382         connector_max_used = ((wire_nums > 0) and self.OneConnected)
  1382         connector_max_used = ((wire_nums > 0) and self.OneConnected)
  1383         if (self.Parent.CurrentLanguage in ["SFC", "LD"]) and (self.Type == "BOOL"):
  1383         if (self.Parent.CurrentLanguage in ["SFC", "LD"]) and (self.Type == "BOOL"):
  1384             connector_max_used = False
  1384             connector_max_used = False
  1385 
  1385 
  1386         # connector is available for new connection
  1386         # connector is available for new connection
  1387         connect  = connector_free or not connector_max_used
  1387         connect = connector_free or not connector_max_used
  1388         return connect, connector_max_used
  1388         return connect, connector_max_used
  1389 
  1389 
  1390     # Tests if the point given is near from the end point of this connector
  1390     # Tests if the point given is near from the end point of this connector
  1391     def TestPoint(self, pt, direction=None, exclude=True):
  1391     def TestPoint(self, pt, direction=None, exclude=True):
  1392         inside = False
  1392         inside = False