graphics/SFC_Objects.py
changeset 204 5eb48c97f6e5
parent 199 85d721b33574
child 213 4931959ea256
equal deleted inserted replaced
203:76c407fb33fe 204:5eb48c97f6e5
  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)