equal
deleted
inserted
replaced
1665 found = True |
1665 found = True |
1666 i += 1 |
1666 i += 1 |
1667 # If no wire defined, unconnect all wires |
1667 # If no wire defined, unconnect all wires |
1668 if not wire: |
1668 if not wire: |
1669 self.Wires = [] |
1669 self.Wires = [] |
1670 self.RefreshValid() |
1670 if not delete: |
1671 self.ParentBlock.RefreshModel(False) |
1671 self.RefreshValid() |
|
1672 self.ParentBlock.RefreshModel(False) |
1672 |
1673 |
1673 # Returns if connector has one or more wire connected |
1674 # Returns if connector has one or more wire connected |
1674 def IsConnected(self): |
1675 def IsConnected(self): |
1675 return len(self.Wires) > 0 |
1676 return len(self.Wires) > 0 |
1676 |
1677 |