Show using GetAtter in wxPyGridTbaleBase

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2003-11-19 06:41:12 +00:00
parent d3d0f6ec7f
commit 5499dd8961

View File

@ -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