From: Robin Dunn Date: Wed, 19 Nov 2003 06:41:12 +0000 (+0000) Subject: Show using GetAtter in wxPyGridTbaleBase X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5499dd8961934ddd2436f6aefed203dd65efa339 Show using GetAtter in wxPyGridTbaleBase git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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