A bunch of little demo tweaks that have accumulated over time...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-15 17:38:10 +00:00
parent 60a9e9925f
commit 1d4d7a48fb
12 changed files with 212 additions and 49 deletions

View File

@@ -16,7 +16,17 @@ class HugeTable(wxPyGridTableBase):
wxPyGridTableBase.__init__(self)
self.log = log
def GetNumberRows(self):
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
def GetNumberCols(self):