diff --git a/wxPython/demo/GridHugeTable.py b/wxPython/demo/GridHugeTable.py index a2084fb6e3..87bcc3279b 100644 --- a/wxPython/demo/GridHugeTable.py +++ b/wxPython/demo/GridHugeTable.py @@ -16,6 +16,16 @@ class HugeTable(wxPyGridTableBase): wxPyGridTableBase.__init__(self) self.log = log + self.odd=wxGridCellAttr() + self.odd.SetBackgroundColour("sky blue") + self.even=wxGridCellAttr() + self.even.SetBackgroundColour("sea green") + + def GetAttr(self, row, col, kind): + attr = [self.even, self.odd][row % 2] + attr.IncRef() + return attr + def GetNumberRows(self): return 10000