'Create and return a new input :class:`AnchorPoint`.'

def newInputAnchor(self):

    if (not (self.widget_description and self.widget_description.inputs)):
        raise ValueError('Widget    has    no    inputs.')
    anchor = AnchorPoint()
    self.inputAnchorItem.addAnchor(anchor, position=1.0)
    positions = self.inputAnchorItem.anchorPositions()
    positions = uniform_linear_layout(positions)
    self.inputAnchorItem.setAnchorPositions(positions)
    return anchor
