wx.Grid -> update the column attributes to add the appropriate renderer given the column name. (renderers are stored in the self.plugins dictionary) Otherwise default to the default renderer.
(self, grid)
| 82 | grid.ProcessTableMessage(msg) |
| 83 | |
| 84 | def _updateColAttrs(self, grid): |
| 85 | """ |
| 86 | wx.Grid -> update the column attributes to add the |
| 87 | appropriate renderer given the column name. (renderers |
| 88 | are stored in the self.plugins dictionary) |
| 89 | |
| 90 | Otherwise default to the default renderer. |
| 91 | """ |
| 92 | col = 0 |
| 93 | |
| 94 | for colname in self.tps.data.columns: |
| 95 | attr = Grid.GridCellAttr() |
| 96 | renderer = MegaFontRenderer(self.tps) |
| 97 | attr.SetRenderer(renderer) |
| 98 | grid.SetColAttr(col, attr) |
| 99 | col += 1 |
| 100 | |
| 101 | |
| 102 |
no test coverage detected