Ejemplo n.º 1
0
def tree():
    box = Box(
        title="Root",
        style=Style(
            border_collapse=False
        ),
        children=(
            Box(
                title="A",
                style=Style(
                    border_collapse=False
                ),
                children=(
                    Box(
                        title="AA",
                    ),
                    Box(
                        title="AB",
                    ),
                ),
            ),
            Box(
                title="B",
            ),
        ),
    )
    box.available_height = 100
    box.available_width = 100
    return box
Ejemplo n.º 2
0
def border_collapse_tree():
    box = Box(
        title="Root",
        children=(
            Box(
                title="A",
                children=(
                    Box(title="AA", ),
                    Box(title="AB", ),
                ),
            ),
            Box(title="B", ),
        ),
    )
    box.available_height = 100
    box.available_width = 100
    return box
Ejemplo n.º 3
0
def tree():
    box = Box(
        title="Root",
        style=Style(border_collapse=False),
        children=(
            Box(
                title="A",
                style=Style(border_collapse=False),
                children=(
                    Box(title="AA", ),
                    Box(title="AB", ),
                ),
            ),
            Box(title="B", ),
        ),
    )
    box.available_height = 100
    box.available_width = 100
    return box
Ejemplo n.º 4
0
def border_collapse_tree():
    box = Box(
        title="Root",
        children=(
            Box(
                title="A",
                children=(
                    Box(
                        title="AA",
                    ),
                    Box(
                        title="AB",
                    ),
                ),
            ),
            Box(
                title="B",
            ),
        ),
    )
    box.available_height = 100
    box.available_width = 100
    return box