Ejemplo n.º 1
0
def test_setter_methods():
    table = Table((0, 0), 10, 10)
    table.set_col_width(0, 3.)
    assert table.col_widths[0] == 3.
    table.set_row_height(0, 4.)
    assert table.row_heights[0] == 4.
Ejemplo n.º 2
0
def table():
    table = Table((0, 0), 3, 3)
    for x in range(3):
        table.set_col_width(x, 3.0)
        table.set_row_height(x, 3.0)
    return table