Initialize column widths Args: - cw: column_width mode cws: list of column widths
(self, cw, cws)
| 140 | self._cell_len = len |
| 141 | |
| 142 | def _init_column_widths(self, cw, cws): |
| 143 | """Initialize column widths |
| 144 | |
| 145 | Args: - cw: column_width mode |
| 146 | cws: list of column widths |
| 147 | |
| 148 | """ |
| 149 | if cws is None or len(self.data[0]) != len(cws): |
| 150 | self._get_column_widths(cw) |
| 151 | else: |
| 152 | self.column_width = cws |
| 153 | |
| 154 | def column_xw(self, x): |
| 155 | """Return the position and width of the requested column""" |
no test coverage detected