Inherits from
- PyGridCellRenderer: wx.grid.PyGridCellRenderer
Attributes
- error_cells
error_cells = wx.Brush(wx.Colour(255, 122, 122), wx.SOLID)
- normal_cells
normal_cells = wx.Brush('white', wx.SOLID) - odd_cells
odd_cells = wx.Brush(wx.Colour(240, 240, 240), wx.SOLID)
- selected_cells
selected_cells = wx.Brush(wx.Colour(255, 255, 200), wx.SOLID)
- warn_cells
warn_cells = wx.Brush(wx.Colour(255, 242, 0), wx.SOLID)
Method summary
- __init__(self, color = 'black', font = 'ARIAL', fontsize = 8)
- Clone(self)
- Draw(self, grid, attr, dc, rect, row, col, isSelected)
- DrawBackground(self, grid, attr, dc, rect, row, col, isSelected)
- DrawEllipses(self, grid, attr, dc, rect, row, col, isSelected)
- DrawForeground(self, grid, attr, dc, rect, row, col, isSelected)
- FormatText(self, text)
- GetBestSize88(self, grid, attr, dc, row, col)
Methods
- __init__(self, color = 'black', font = 'ARIAL', fontsize = 8)
- Clone(self)
- Draw(self, grid, attr, dc, rect, row, col, isSelected)
- DrawBackground(self, grid, attr, dc, rect, row, col, isSelected)
Erases whatever is already in the cell by drawing over it.
- DrawEllipses(self, grid, attr, dc, rect, row, col, isSelected)
Adds three dots "..." to indicate the cell is truncated.
- DrawForeground(self, grid, attr, dc, rect, row, col, isSelected)
Draws the cell (text) on top of the existing background color.
- FormatText(self, text)
Formats numbers to 3 decimal places.
- GetBestSize88(self, grid, attr, dc, row, col)
This crashes the app - hmmmm.