Base class for row, col or corner label renderers.
wx.lib.mixins.gridlabelrenderer.GridDefaultColLabelRenderer
, wx.lib.mixins.gridlabelrenderer.GridDefaultCornerLabelRenderer
, wx.lib.mixins.gridlabelrenderer.GridDefaultRowLabelRenderer
Draw |
Override this method in derived classes to do the actual |
DrawBorder |
Draw a standard border around the label, to give a simple 3D |
DrawText |
Draw the label’s text in the rectangle, using the alignment |
GridLabelRenderer
(object)¶Base class for row, col or corner label renderers.
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.