graphics/LD_Objects.py
changeset 8 7ceec5c40d77
parent 7 f1691e685c49
child 27 dae55dd9ee14
equal deleted inserted replaced
7:f1691e685c49 8:7ceec5c40d77
   134         self.RefreshConnected()
   134         self.RefreshConnected()
   135     
   135     
   136     # Refresh the position of wires connected 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             if connector:
       
   140                 connector.MoveConnected(exclude)
   140     
   141     
   141     # Returns the power rail connector that starts with the point given if it exists 
   142     # Returns the power rail connector that starts with the point given if it exists 
   142     def GetConnector(self, position):
   143     def GetConnector(self, position):
   143         for connector in self.Connectors:
   144         for connector in self.Connectors:
   144             if connector:
   145             if connector: