graphics/LD_Objects.py
changeset 7 f1691e685c49
parent 5 f8652b073e84
child 8 7ceec5c40d77
equal deleted inserted replaced
6:c8cf918ee7ea 7:f1691e685c49
   131                 elif self.Type == RIGHTRAIL:
   131                 elif self.Type == RIGHTRAIL:
   132                     connector.SetPosition(wxPoint(0, position))
   132                     connector.SetPosition(wxPoint(0, position))
   133             position += LD_LINE_SIZE
   133             position += LD_LINE_SIZE
   134         self.RefreshConnected()
   134         self.RefreshConnected()
   135     
   135     
   136     # Refresh the position of wires connefcted to power rail
   136     # Refresh the position of wires connected to power rail
   137     def RefreshConnected(self, exclude = []):
   137     def RefreshConnected(self, exclude = []):
   138         for connector in self.Connectors:
   138         for connector in self.Connectors:
   139             connector.MoveConnected(exclude)
   139             connector.MoveConnected(exclude)
   140     
   140     
   141     # Returns the power rail connector that starts with the point given if it exists 
   141     # Returns the power rail connector that starts with the point given if it exists