graphics/GraphicCommons.py
changeset 1062 fd7c9a7cf882
parent 1054 ef514eaacd8c
child 1069 880ec628d490
equal deleted inserted replaced
1053:b0ac30ba7eaf 1062:fd7c9a7cf882
  1693     
  1693     
  1694     # Connect a wire to this connector at the place given
  1694     # Connect a wire to this connector at the place given
  1695     def InsertConnect(self, idx, wire, refresh = True):
  1695     def InsertConnect(self, idx, wire, refresh = True):
  1696         if wire not in self.Wires:
  1696         if wire not in self.Wires:
  1697             self.Wires.insert(idx, wire)
  1697             self.Wires.insert(idx, wire)
       
  1698             if wire[1] == 0:
       
  1699                 wire[0].ConnectStartPoint(None, self)
       
  1700             else:
       
  1701                 wire[0].ConnectEndPoint(None, self)
  1698             if refresh:
  1702             if refresh:
  1699                 self.ParentBlock.RefreshModel(False)
  1703                 self.ParentBlock.RefreshModel(False)
  1700     
  1704     
  1701     # Returns the index of the wire given in the list of connected
  1705     # Returns the index of the wire given in the list of connected
  1702     def GetWireIndex(self, wire):
  1706     def GetWireIndex(self, wire):