+ self.odd=gridlib.GridCellAttr()
+ self.odd.SetBackgroundColour("sky blue")
+ self.even=gridlib.GridCellAttr()
+ self.even.SetBackgroundColour("sea green")
+
+ def GetAttr(self, row, col, kind):
+ attr = [self.even, self.odd][row % 2]
+ 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.
+