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

Method cellstr

tabview/tabview.py:910–916  ·  view source on GitHub ↗

Format the content of the requested cell for display

(self, y, x, width)

Source from the content-addressed store, hash-verified

908 return self.strpad(s, width)
909
910 def cellstr(self, y, x, width):
911 "Format the content of the requested cell for display"
912 if len(self.data) <= y or len(self.data[y]) <= x:
913 s = ""
914 else:
915 s = self.data[y][x]
916 return self.strpad(s, width)
917
918 def _get_column_widths(self, width):
919 """Compute column width array

Callers 1

displayMethod · 0.95

Calls 1

strpadMethod · 0.95

Tested by

no test coverage detected