-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathrow.py
More file actions
18 lines (14 loc) · 489 Bytes
/
row.py
File metadata and controls
18 lines (14 loc) · 489 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"A Row in the Table"
from column import Column
class Row(): # pylint: disable=too-few-public-methods
"A Row in the Table"
def __init__(self, column_count: int) -> None:
self.columns = []
for _ in range(column_count):
self.columns.append(Column())
def get_data(self):
"Format the row before returning it to the table"
ret = ""
for column in self.columns:
ret = f"{ret}{column.get_data()}|"
return ret