2328 if self.rubberBand.IsShown(): |
2328 if self.rubberBand.IsShown(): |
2329 self.rubberBand.OnMotion(event, dc, self.Scaling) |
2329 self.rubberBand.OnMotion(event, dc, self.Scaling) |
2330 elif not self.Debug and self.Mode == MODE_SELECTION and self.SelectedElement is not None: |
2330 elif not self.Debug and self.Mode == MODE_SELECTION and self.SelectedElement is not None: |
2331 if self.DrawingWire: |
2331 if self.DrawingWire: |
2332 connector, errorHighlight = self.FindBlockConnectorWithError(pos, self.SelectedElement.GetConnectionDirection(), self.SelectedElement.EndConnected) |
2332 connector, errorHighlight = self.FindBlockConnectorWithError(pos, self.SelectedElement.GetConnectionDirection(), self.SelectedElement.EndConnected) |
2333 self.SelectedElement.ErrHighlight = errorHighlight; |
2333 self.SelectedElement.ErrHighlight = errorHighlight |
2334 if not connector or self.SelectedElement.EndConnected is None: |
2334 if not connector or self.SelectedElement.EndConnected is None: |
2335 self.SelectedElement.ResetPoints() |
2335 self.SelectedElement.ResetPoints() |
2336 movex, movey = self.SelectedElement.OnMotion(event, dc, self.Scaling) |
2336 movex, movey = self.SelectedElement.OnMotion(event, dc, self.Scaling) |
2337 self.SelectedElement.GeneratePoints() |
2337 self.SelectedElement.GeneratePoints() |
2338 if movex != 0 or movey != 0: |
2338 if movex != 0 or movey != 0: |