def __init__(self, workspace, sourcePoint, targetPoint): #logging.debug(__name__ +": __init__()") self._recalculateRouteFlag = True self._sourceDirection = PointToPointConnection.ConnectionDirection.RIGHT self._targetDirection = PointToPointConnection.ConnectionDirection.LEFT self._route = None self._selectableFlag = True self._selectedFlag = False self._deletableFlag = True self._deletedFlag = False self._sourcePoint = sourcePoint self._targetPoint = targetPoint self._dragReferencePoint = None ZoomableWidget.__init__(self, workspace) self.setFocusPolicy(self.FOCUSPOLICY) self.setType(self.CONNECTION_TYPE) self.updateConnection()
def __init__(self, parent=None): logging.debug(__name__ + ": __init__") ZoomableWidget.__init__(self, parent) ConnectableWidgetOwner.__init__(self)