MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / __init__

Method __init__

scenedetect/_thirdparty/simpletable.py:143–159  ·  view source on GitHub ↗

Table row constructor. Keyword arguments: cells -- iterable of SimpleTableCell (default None) header -- flag to indicate this row is a header row. if the cells are SimpleTableCell, it is the programmer's responsibility to verify whether it

(self, cells=None, header=False)

Source from the content-addressed store, hash-verified

141 """
142
143 def __init__(self, cells=None, header=False):
144 """Table row constructor.
145
146 Keyword arguments:
147 cells -- iterable of SimpleTableCell (default None)
148 header -- flag to indicate this row is a header row.
149 if the cells are SimpleTableCell, it is the programmer's
150 responsibility to verify whether it was created with the
151 header flag set to True.
152 """
153 cells = cells or []
154 if isinstance(cells[0], SimpleTableCell):
155 self.cells = cells
156 else:
157 self.cells = [SimpleTableCell(cell, header=header) for cell in cells]
158
159 self.header = header
160
161 def __str__(self):
162 """Return the HTML code for the table row and its cells as a string."""

Callers

nothing calls this directly

Calls 1

SimpleTableCellClass · 0.85

Tested by

no test coverage detected