graphics/LD_Objects.py
changeset 138 9c74d00ce93e
parent 127 436268f31dae
child 140 06d28f03f6f4
equal deleted inserted replaced
137:fc7e0b8ed9d3 138:9c74d00ce93e
   293     # Refreshes the powerrail state according to move defined and handle selected
   293     # Refreshes the powerrail state according to move defined and handle selected
   294     def ProcessDragging(self, movex, movey):
   294     def ProcessDragging(self, movex, movey):
   295         handle_type, handle = self.Handle
   295         handle_type, handle = self.Handle
   296         # A connector has been handled
   296         # A connector has been handled
   297         if handle_type == HANDLE_CONNECTOR:
   297         if handle_type == HANDLE_CONNECTOR:
       
   298             movey = max(-self.BoundingBox.y, movey)
   298             self.MoveConnector(handle, movey)
   299             self.MoveConnector(handle, movey)
   299             return False, True
   300             return 0, movey
   300         else:
   301         else:
   301             return Graphic_Element.ProcessDragging(self, movex, movey)
   302             return Graphic_Element.ProcessDragging(self, movex, movey)
   302     
   303     
   303     # Refreshes the power rail model
   304     # Refreshes the power rail model
   304     def RefreshModel(self, move=True):
   305     def RefreshModel(self, move=True):