graphics/GraphicCommons.py
branchfix_fb_resize_wire_bug
changeset 2617 93ad3db5f9df
parent 2616 7a434c8d3f3c
child 2625 e5ce6c4a8672
equal deleted inserted replaced
2616:7a434c8d3f3c 2617:93ad3db5f9df
  1963                     return i, self.Segments[i]
  1963                     return i, self.Segments[i]
  1964         return None
  1964         return None
  1965 
  1965 
  1966     # Define the wire points
  1966     # Define the wire points
  1967     def SetPoints(self, points, merge_segments=True):
  1967     def SetPoints(self, points, merge_segments=True):
  1968         print("SetPoints", self)
       
  1969         if len(points) > 1:
  1968         if len(points) > 1:
  1970 
  1969 
  1971             # filter duplicates, add corner to diagonals
  1970             # filter duplicates, add corner to diagonals
  1972             self.Points = []
  1971             self.Points = []
  1973             lx,ly = None,None
  1972             lx,ly = None,None