graphics/GraphicCommons.py
changeset 1054 ef514eaacd8c
parent 1047 efcc2283dd77
child 1069 880ec628d490
equal deleted inserted replaced
1048:b450202605ab 1054:ef514eaacd8c
  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):