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

Method _get_column_widths_max

tabview/tabview.py:983–993  ·  view source on GitHub ↗

Given a list of lists, return a list of the variable column width for each column using the max length. Args: d - list of lists with x columns Returns: list of ints [len_1, len_2...len_x]

(self, d)

Source from the content-addressed store, hash-verified

981 return [self._mode_len(i) for i in d]
982
983 def _get_column_widths_max(self, d):
984 """Given a list of lists, return a list of the variable column width
985 for each column using the max length.
986
987 Args: d - list of lists with x columns
988 Returns: list of ints [len_1, len_2...len_x]
989
990 """
991 d = zip(*d)
992 return [max(1, min(250, max(set(self._cell_len(j) for j in i))))
993 for i in d]
994
995 def _skip_to_value_change(self, x_inc, y_inc):
996 m = self.consume_modifier()

Callers 1

_get_column_widthsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected