MCPcopy Create free account
hub / github.com/TabViewer/tabview / _init_column_widths

Method _init_column_widths

tabview/tabview.py:142–152  ·  view source on GitHub ↗

Initialize column widths Args: - cw: column_width mode cws: list of column widths

(self, cw, cws)

Source from the content-addressed store, hash-verified

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"""

Callers 1

__init__Method · 0.95

Calls 1

_get_column_widthsMethod · 0.95

Tested by

no test coverage detected