X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/demo/GridHugeTable.py diff --git a/wxPython/demo/GridHugeTable.py b/wxPython/demo/GridHugeTable.py index 5e8bf5eb0d..cd5d2e258e 100644 --- a/wxPython/demo/GridHugeTable.py +++ b/wxPython/demo/GridHugeTable.py @@ -1,7 +1,3 @@ -# 11/6/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import wx import wx.grid as gridlib @@ -10,20 +6,13 @@ import wx.grid as gridlib class HugeTable(gridlib.PyGridTableBase): - """ - This is all it takes to make a custom data table to plug into a - wxGrid. There are many more methods that can be overridden, but - the ones shown below are the required ones. This table simply - provides strings containing the row and column values. - """ - def __init__(self, log): gridlib.PyGridTableBase.__init__(self) self.log = log - self.odd=wxGridCellAttr() + self.odd=gridlib.GridCellAttr() self.odd.SetBackgroundColour("sky blue") - self.even=wxGridCellAttr() + self.even=gridlib.GridCellAttr() self.even.SetBackgroundColour("sea green") def GetAttr(self, row, col, kind): @@ -31,6 +20,13 @@ class HugeTable(gridlib.PyGridTableBase): attr.IncRef() return attr + + + # This is all it takes to make a custom data table to plug into a + # wxGrid. There are many more methods that can be overridden, but + # the ones shown below are the required ones. This table simply + # provides strings containing the row and column values. + def GetNumberRows(self): return 10000