Return the position and width of the requested column
(self, x)
| 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 |
no outgoing calls
no test coverage detected