Пример #1
0
def center_justify(*args, **kwargs):
    """
    Usage: $center_justify(<text>)
    Returns <text> centered in screen width.

    """
    if args:
        return base_justify(args[0], align='c')
    return ""
Пример #2
0
def left_justify(*args, **kwargs):
    """
    Usage: $left_justify(<text>)
    Returns <text> left-justified.

    """
    if args:
        return base_justify(args[0], align='l')
    return ""
Пример #3
0
def right_justify(*args, **kwargs):
    """
    Usage: $right_justify(<text>)
    Returns <text> right-justified across screen width.

    """
    if args:
        return base_justify(args[0], align='r')
    return ""
Пример #4
0
def full_justify(*args, **kwargs):
    """
    Usage: $full_justify(<text>)
    Returns <text> filling up screen width by adding extra space.

    """
    if args:
        return base_justify(args[0], align='f')
    return ""
Пример #5
0
def right_justify(*args, **kwargs):
    """
    Usage: $right_justify(<text>)
    Returns <text> right-justified across screen width.

    """
    if args:
        return base_justify(args[0], align='r')
    return ""
Пример #6
0
def left_justify(*args, **kwargs):
    """
    Usage: $left_justify(<text>)
    Returns <text> left-justified.

    """
    if args:
        return base_justify(args[0], align='l')
    return ""
Пример #7
0
def center_justify(*args, **kwargs):

    """
    Usage: $center_justify(<text>)
    Returns <text> centered in screen width.

    """
    if args:
        return base_justify(args[0], align='c')
    return ""
Пример #8
0
def full_justify(*args, **kwargs):

    """
    Usage: $full_justify(<text>)
    Returns <text> filling up screen width by adding extra space.

    """
    if args:
        return base_justify(args[0], align='f')
    return ""