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

Method hdrstr

tabview/tabview.py:902–908  ·  view source on GitHub ↗

Format the content of the requested header for display

(self, x, width)

Source from the content-addressed store, hash-verified

900 return buf
901
902 def hdrstr(self, x, width):
903 "Format the content of the requested header for display"
904 if len(self.header) <= x:
905 s = ""
906 else:
907 s = self.header[x]
908 return self.strpad(s, width)
909
910 def cellstr(self, y, x, width):
911 "Format the content of the requested cell for display"

Callers 1

displayMethod · 0.95

Calls 1

strpadMethod · 0.95

Tested by

no test coverage detected