equal
deleted
inserted
replaced
1172 Graphic_Element.OnRightDown(self, event, dc, scaling) |
1172 Graphic_Element.OnRightDown(self, event, dc, scaling) |
1173 |
1173 |
1174 # Method called when a RightUp event have been generated |
1174 # Method called when a RightUp event have been generated |
1175 def OnRightUp(self, event, dc, scaling): |
1175 def OnRightUp(self, event, dc, scaling): |
1176 handle_type, handle = self.Handle |
1176 handle_type, handle = self.Handle |
1177 if handle_type == HANDLE_CONNECTOR: |
1177 if handle_type == HANDLE_CONNECTOR and self.Dragging and self.oldPos: |
1178 wires = handle.GetWires() |
1178 wires = handle.GetWires() |
1179 if len(wires) != 1: |
1179 if len(wires) != 1: |
1180 return |
1180 return |
1181 block = wires[0][0].GetOtherConnected(handle).GetParentBlock() |
1181 block = wires[0][0].GetOtherConnected(handle).GetParentBlock() |
1182 block.RefreshModel(False) |
1182 block.RefreshModel(False) |