]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridHugeTable.py
Mention that NO_FULL_REPAINT_ON_RESIZE is now the default
[wxWidgets.git] / wxPython / demo / GridHugeTable.py
index a2084fb6e32ca11b14c3d951c6764bc68bdc3b01..69c840f5fd7fd2f02096445367d09eabce411686 100644 (file)
@@ -16,6 +16,16 @@ class HugeTable(wxPyGridTableBase):
         wxPyGridTableBase.__init__(self)
         self.log = log
 
         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
 
     def GetNumberRows(self):
         return 10000