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

Method column_xw

tabview/tabview.py:154–159  ·  view source on GitHub ↗

Return the position and width of the requested column

(self, x)

Source from the content-addressed store, hash-verified

152 self.column_width = cws
153
154 def column_xw(self, x):
155 """Return the position and width of the requested column"""
156 xp = sum(self.column_width[self.win_x:self.win_x + x]) \
157 + x * self.column_gap
158 w = max(0, min(self.max_x - xp, self.column_width[self.win_x + x]))
159 return xp, w
160
161 def quit(self):
162 raise QuitException

Callers 2

recalculate_layoutMethod · 0.95
displayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected