Beispiel #1
0
def test_colored_set_width_boxes():
    print()
    with Style(39, 44), Box.thick(size=40):
        with Style(31, 42), box(size=20), Style(30):
            print("Test 17")
        with Style(30, 41), box(size=30), Style(39), box(), Style(30, 47):
            print("Test 17")
        with Style(33, 49), box(size=35), Style(39):
            print("Test 17")
Beispiel #2
0
def test_colored_deeply_nested_boxes_with_separator():
    print()
    with Style(31), Box.round() as b1, Style(39):
        print("Test 19")
        b1.sep()
        with Style(34), box() as b2, Style(39):
            print("Test 19")
            b2.sep()
            print("Test 19")
            b2.sep()
            with Style(33), box() as b3, Style(39):
                print("Test 19")
                b3.sep()
                print("Test 19")
        b1.sep()
        print("Test 19")
Beispiel #3
0
def test_nested_boxes_with_colors_and_rows():
    print()
    with Style(31), Box.fancy():
        with Style(35), box(), Style(32), Box.thick(), Style(30, 45):
            print("Test 14")
        with Style(33), Box.double(), Style(39):
            print("Test 14")
Beispiel #4
0
def test_no_flush():
    print()
    with Style(43):
        with box() as b:
            print("Test 2")
            b.sep()
            print("Test", end="")
            print(" 2")
Beispiel #5
0
def test_styled_sep_box():
    print()
    with box() as b:
        print("Test 3")
        b.sep()
        with Style(30, 45):
            print("Test 3")
        b.sep()
        print("Test 3")
Beispiel #6
0
def test_background_in_row():
    print()
    with Style(42):
        with box() as b:
            print("Test 4")
            b.sep()
            with Style(43):
                print("Test 4")
            b.sep()
            print("Test 4")
Beispiel #7
0
def test_simple_box():
    print()
    with box():
        print("Test 0")
Beispiel #8
0
def test_colored_nested_boxes_with_separator():
    print()
    with Style(31), Box.round(), Style(34), box() as b2, Style(39):
        print("Test 18")
        b2.sep()
        print("Test 18")
Beispiel #9
0
def test_set_width_boxes():
    print()
    with box(size=40), box(size=20):
        print("Test 16")
Beispiel #10
0
def test_simple_box_sep():
    print()
    with box() as b:
        print("Test 1")
        b.sep()
        print("Test 1")
Beispiel #11
0
def test_deeply_nested_boxes():
    print()
    with box(), Box.fancy(), Box.double(), Box.ascii():
        print("Test 13")
Beispiel #12
0
def test_nested_boxes():
    print()
    with box(), box():
        print("Test 12")
Beispiel #13
0
def test_colored_box_white_text():
    print()
    with Style(31), box() as b, Style(39):
        print("Test 11")
        b.sep()
        print("Test 11")