MCPcopy Create free account
hub / github.com/Image-Py/imagepy / _updateColAttrs

Method _updateColAttrs

imagepy/ui/tablewindow.py:84–99  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

ResetViewMethod · 0.95

Calls 1

MegaFontRendererClass · 0.85

Tested by

no test coverage detected