wx.lib.mixins.gridlabelrenderer.GridWithLabelRenderersMixin¶
This class can be mixed with wx.grid.Grid to add the ability to plugin label renderer objects for the row, column and corner labels, similar to how the cell renderers work in the main Grid class.
Class Hierarchy¶
Methods Summary¶
Initialize self. See help(type(self)) for accurate signature. |
|
Register a renderer to be used for drawing the label for the |
|
Sets the renderer that should be used for drawing the area in |
|
Set the column label renderer that should be used for any |
|
Set the row label renderer that should be used for any row |
|
Register a renderer to be used for drawing the label for the |
Class API¶
- class GridWithLabelRenderersMixin(object)¶
This class can be mixed with wx.grid.Grid to add the ability to plugin label renderer objects for the row, column and corner labels, similar to how the cell renderers work in the main Grid class.
Methods¶
- __init__(self)¶
Initialize self. See help(type(self)) for accurate signature.
- SetColLabelRenderer(self, col, renderer)¶
Register a renderer to be used for drawing the label for the given column.
- SetCornerLabelRenderer(self, renderer)¶
Sets the renderer that should be used for drawing the area in the upper left corner of the Grid, between the row labels and the column labels. Defaults to an instance of
GridDefaultCornerLabelRenderer
- SetDefaultColLabelRenderer(self, renderer)¶
Set the column label renderer that should be used for any column that does not have an explicitly set renderer. Defaults to an instance of
GridDefaultColLabelRenderer
.
- SetDefaultRowLabelRenderer(self, renderer)¶
Set the row label renderer that should be used for any row that does not have an explicitly set renderer. Defaults to an instance of
GridDefaultRowLabelRenderer
.
- SetRowLabelRenderer(self, row, renderer)¶
Register a renderer to be used for drawing the label for the given row.