Phoenix Logo

phoenix_title 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 Class Hierarchy

Inheritance diagram for class GridWithLabelRenderersMixin:


method_summary Methods Summary

__init__  
SetColLabelRenderer Register a renderer to be used for drawing the label for the
SetCornerLabelRenderer Sets the renderer that should be used for drawing the area in
SetDefaultColLabelRenderer Set the column label renderer that should be used for any
SetDefaultRowLabelRenderer Set the row label renderer that should be used for any row
SetRowLabelRenderer Register a renderer to be used for drawing the label for the

api 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)


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.