phoenix_title wx.grid.GridHeaderLabelsRenderer

Common base class for row and column headers renderers.

New in version 2.9.1.


class_hierarchy Class Hierarchy

Inheritance diagram for class GridHeaderLabelsRenderer:

sub_classes Known Subclasses

wx.grid.GridColumnHeaderRenderer, wx.grid.GridRowHeaderRenderer


method_summary Methods Summary

DrawLabel

Called by the grid to draw the specified label.


api Class API

class wx.grid.GridHeaderLabelsRenderer(GridCornerHeaderRenderer)

Common base class for row and column headers renderers.

DrawLabel(self, grid, dc, value, rect, horizAlign, vertAlign, textOrientation)

Called by the grid to draw the specified label.

Notice that the base class DrawBorder method is called before this one.

The default implementation uses wx.grid.Grid.GetLabelTextColour and wx.grid.Grid.GetLabelFont to draw the label.

Parameters
  • grid (wx.grid.Grid) –

  • dc (wx.DC) –

  • value (string) –

  • rect (wx.Rect) –

  • horizAlign (int) –

  • vertAlign (int) –

  • textOrientation (int) –