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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user