equal
deleted
inserted
replaced
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): |