graphics/GraphicCommons.py
changeset 679 91e8ff268e96
parent 667 baab9eb5b8ad
equal deleted inserted replaced
678:9d58192e823a 679:91e8ff268e96
  1521         return self.ParentBlock.IsOfType(type, reference) or self.ParentBlock.IsOfType(reference, type)
  1521         return self.ParentBlock.IsOfType(type, reference) or self.ParentBlock.IsOfType(reference, type)
  1522     
  1522     
  1523     # Changes the connector name
  1523     # Changes the connector name
  1524     def SetType(self, type):
  1524     def SetType(self, type):
  1525         self.Type = type
  1525         self.Type = type
       
  1526         for wire, handle in self.Wires:
       
  1527             wire.SetValid(wire.IsConnectedCompatible())
  1526     
  1528     
  1527     # Returns the connector name
  1529     # Returns the connector name
  1528     def GetName(self):
  1530     def GetName(self):
  1529         return self.Name
  1531         return self.Name
  1530     
  1532