Automatically set width for column.
(self, col, renderer)
| 453 | self.stale = True |
| 454 | |
| 455 | def _auto_set_column_width(self, col, renderer): |
| 456 | """Automatically set width for column.""" |
| 457 | cells = [key for key in self._cells if key[1] == col] |
| 458 | |
| 459 | # find max width |
| 460 | width = 0 |
| 461 | for cell in cells: |
| 462 | c = self._cells[cell] |
| 463 | width = max(c.get_required_width(renderer), width) |
| 464 | |
| 465 | # Now set the widths |
| 466 | for cell in cells: |
| 467 | self._cells[cell].set_width(width) |
| 468 | |
| 469 | def auto_set_font_size(self, value=True): |
| 470 | """ Automatically set font size. """ |
no test coverage detected