graphics/LD_Objects.py
changeset 327 7fd5233ce5ce
parent 283 c4199b88cf60
child 360 072f9f830659
--- a/graphics/LD_Objects.py	Wed Mar 18 15:54:37 2009 +0100
+++ b/graphics/LD_Objects.py	Wed Mar 18 15:56:45 2009 +0100
@@ -332,7 +332,7 @@
             self.SetSize(LD_POWERRAIL_WIDTH, height)
 
     # Refreshes the powerrail state according to move defined and handle selected
-    def ProcessDragging(self, movex, movey, centered, scaling):
+    def ProcessDragging(self, movex, movey, event, scaling):
         handle_type, handle = self.Handle
         # A connector has been handled
         if handle_type == HANDLE_CONNECTOR:
@@ -343,7 +343,7 @@
             self.MoveConnector(handle, movey)
             return 0, movey
         else:
-            return Graphic_Element.ProcessDragging(self, movex, movey, centered, scaling)
+            return Graphic_Element.ProcessDragging(self, movex, movey, event, scaling)
     
     # Refreshes the power rail model
     def RefreshModel(self, move=True):
@@ -461,7 +461,7 @@
                 rect = rect.Union(self.Output.GetConnectedRedrawRect(movex, movey))
         return rect
 
-    def ProcessDragging(self, movex, movey, centered, scaling):
+    def ProcessDragging(self, movex, movey, event, scaling):
         return Graphic_Element.ProcessDragging(self, movex, movey, centered, scaling, height_fac = 2)
     
     # Forbids to change the contact size
@@ -746,8 +746,8 @@
                 rect = rect.Union(self.Output.GetConnectedRedrawRect(movex, movey))
         return rect
     
-    def ProcessDragging(self, movex, movey, centered, scaling):
-        return Graphic_Element.ProcessDragging(self, movex, movey, centered, scaling, height_fac = 2)    
+    def ProcessDragging(self, movex, movey, event, scaling):
+        return Graphic_Element.ProcessDragging(self, movex, movey, event, scaling, height_fac = 2)    
     
     # Forbids to change the Coil size
     def SetSize(self, width, height):