Toggle column width mode between 'mode' and 'max' or set fixed column width mode if self.modifier is set.
(self)
| 597 | return repr(type(value)), value |
| 598 | |
| 599 | def toggle_column_width(self): |
| 600 | """Toggle column width mode between 'mode' and 'max' or set fixed |
| 601 | column width mode if self.modifier is set. |
| 602 | |
| 603 | """ |
| 604 | try: |
| 605 | self.column_width_mode = min(int(self.modifier), self.max_x) |
| 606 | self.modifier = str() |
| 607 | except ValueError: |
| 608 | if self.column_width_mode == 'mode': |
| 609 | self.column_width_mode = 'max' |
| 610 | else: |
| 611 | self.column_width_mode = 'mode' |
| 612 | self._get_column_widths(self.column_width_mode) |
| 613 | self.recalculate_layout() |
| 614 | |
| 615 | def set_current_column_width(self): |
| 616 | xs = self.win_x + self.x |
nothing calls this directly
no test coverage detected