X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..ed8e1ecb3fdabbbe5062ebba2a50a2bc8d1e2c76:/wxPython/demo/GridHugeTable.py?ds=sidebyside diff --git a/wxPython/demo/GridHugeTable.py b/wxPython/demo/GridHugeTable.py index a2084fb6e3..69c840f5fd 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