(self, context)
Return the initial alignment value based on direction.
Return the initial alignment value based on direction.
Return the initial alignment value based on direction .
def value(self, context):
        """Return the initial alignment value based on direction."""
        direction = getattr(context, 'direction')
        if direction is LTR:
            return LEFT

        if direction is RTL:
            return RIGHT

        raise ValueError('Undefined value "{value}" for direction property!'.format(value=direction))
def value ( self , context ) : direction = getattr ( context , 'direction' ) if direction is LTR : return LEFT if direction is RTL : return RIGHT raise ValueError ( 'Undefined value "{value}" for direction property!' . format ( value = direction ) )