equal
deleted
inserted
replaced
194 elif self.Type == RIGHTRAIL: |
194 elif self.Type == RIGHTRAIL: |
195 connector.SetPosition(wx.Point(0, position)) |
195 connector.SetPosition(wx.Point(0, position)) |
196 self.RefreshConnected() |
196 self.RefreshConnected() |
197 |
197 |
198 # Refresh the position of wires connected to power rail |
198 # Refresh the position of wires connected to power rail |
199 def RefreshConnected(self, exclude=[]): |
199 def RefreshConnected(self, exclude=None): |
200 for connector in self.Connectors: |
200 for connector in self.Connectors: |
201 connector.MoveConnected(exclude) |
201 connector.MoveConnected(exclude) |
202 |
202 |
203 # Returns the power rail connector that starts with the point given if it exists |
203 # Returns the power rail connector that starts with the point given if it exists |
204 def GetConnector(self, position, name=None): |
204 def GetConnector(self, position, name=None): |
504 # Returns the block minimum size |
504 # Returns the block minimum size |
505 def GetMinSize(self): |
505 def GetMinSize(self): |
506 return LD_ELEMENT_SIZE |
506 return LD_ELEMENT_SIZE |
507 |
507 |
508 # Refresh the position of wire connected to contact |
508 # Refresh the position of wire connected to contact |
509 def RefreshConnected(self, exclude=[]): |
509 def RefreshConnected(self, exclude=None): |
510 self.Input.MoveConnected(exclude) |
510 self.Input.MoveConnected(exclude) |
511 self.Output.MoveConnected(exclude) |
511 self.Output.MoveConnected(exclude) |
512 |
512 |
513 # Returns the contact connector that starts with the point given if it exists |
513 # Returns the contact connector that starts with the point given if it exists |
514 def GetConnector(self, position, name=None): |
514 def GetConnector(self, position, name=None): |
824 # Returns the block minimum size |
824 # Returns the block minimum size |
825 def GetMinSize(self): |
825 def GetMinSize(self): |
826 return LD_ELEMENT_SIZE |
826 return LD_ELEMENT_SIZE |
827 |
827 |
828 # Refresh the position of wire connected to coil |
828 # Refresh the position of wire connected to coil |
829 def RefreshConnected(self, exclude=[]): |
829 def RefreshConnected(self, exclude=None): |
830 self.Input.MoveConnected(exclude) |
830 self.Input.MoveConnected(exclude) |
831 self.Output.MoveConnected(exclude) |
831 self.Output.MoveConnected(exclude) |
832 |
832 |
833 # Returns the coil connector that starts with the point given if it exists |
833 # Returns the coil connector that starts with the point given if it exists |
834 def GetConnector(self, position, name=None): |
834 def GetConnector(self, position, name=None): |