wx.lib.mixins.gridlabelrenderer.GridLabelRenderer¶
Base class for row, col or corner label renderers.
Class Hierarchy¶
Known Subclasses¶
wx.lib.mixins.gridlabelrenderer.GridDefaultColLabelRenderer
, wx.lib.mixins.gridlabelrenderer.GridDefaultCornerLabelRenderer
, wx.lib.mixins.gridlabelrenderer.GridDefaultRowLabelRenderer
Methods Summary¶
Override this method in derived classes to do the actual |
|
Draw a standard border around the label, to give a simple 3D |
|
Draw the label’s text in the rectangle, using the alignment |
Class API¶
- class GridLabelRenderer(object)¶
Base class for row, col or corner label renderers.
Methods¶
- Draw(self, grid, dc, rect, row_or_col)¶
Override this method in derived classes to do the actual drawing of the label.
- DrawBorder(self, grid, dc, rect)¶
Draw a standard border around the label, to give a simple 3D effect like the stock wx.grid.Grid labels do.
- DrawText(self, grid, dc, rect, text, hAlign, vAlign)¶
Draw the label’s text in the rectangle, using the alignment flags, and the grid’s specified label font and color.