From 925448a4527ec1a88b800dbeca8b90ccb365b38e Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 5 May 2019 10:46:46 +1000 Subject: rtemstoolkit: columns are only ints. --- rtemstoolkit/textbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtemstoolkit') diff --git a/rtemstoolkit/textbox.py b/rtemstoolkit/textbox.py index 441e333..7e9f34e 100644 --- a/rtemstoolkit/textbox.py +++ b/rtemstoolkit/textbox.py @@ -61,7 +61,7 @@ def row(cols, data, indent = 0, marker = '|', linesep = os.linesep): return s + linesep def even_columns(cols, width = 80): - per_col = width / cols + per_col = int(width / cols) columns = [per_col for c in range(0, cols)] for remainder in range(0, int(width - (per_col * cols))): if remainder % 2 == 0: -- cgit v1.2.3