'Set the horizontal alignment to one of
ACCEPTS: [ \'center\' | \'right\' | \'left\' ]'

def set_horizontalalignment(self, align):

    legal = (u'center', u'right', u'left')
    if (align not in legal):
        raise ValueError((u'Horizontal    alignment    must    be    one    of    %s' % str(legal)))
    self._horizontalalignment = align
    self.stale = True
