# HG changeset patch # User lbessard # Date 1237388992 -3600 # Node ID 1cf72cb51dc9006810fc28d738c800270a8b6df3 # Parent 500588ea29e8e154d2c66337272d12b8042e93bd Adding support for contraining move to only one direction when control down Refreshing bug when aligning two block connected to the same wire fixed diff -r 500588ea29e8 -r 1cf72cb51dc9 graphics/GraphicCommons.py --- a/graphics/GraphicCommons.py Wed Mar 18 16:04:35 2009 +0100 +++ b/graphics/GraphicCommons.py Wed Mar 18 16:09:52 2009 +0100 @@ -534,7 +534,7 @@ # If a dragging have been initiated, refreshes the element state if self.Dragging: dragx, dragy = self.ProcessDragging(movex, movey, event, scaling) - if event.ControlDown() and self.Handle == HANDLE_MOVE: + if event.ControlDown() and self.Handle[0] == HANDLE_MOVE: self.oldPos.x = self.StartPos.x + self.CurrentDrag.x self.oldPos.y = self.StartPos.y + self.CurrentDrag.y else: @@ -857,7 +857,6 @@ # Move this group of elements def Move(self, movex, movey): - print self.Pos, self.StartPos # Move all the elements of the group for element in self.Elements: if not isinstance(element, Wire):