How do I highlight a row after an update of the underlying PyGridTableBase? I can't seem to get my head around it.
I am able to create alternate row highlighting lines when the table is first drawn:
### Style the table a little.
def GetAttr(self, row, col, prop):
attr = gridlib.GridCellAttr()
if self.is_header(row):
attr.SetReadOnly(1)
attr.SetFont(wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.NORMAL))
attr.SetBackgroundColour(wx.LIGHT_GREY)
attr.SetAlignment(wx.ALIGN_CENTRE, wx.ALIGN_CENTRE)
return attr
if prop is 'highlight':
attr.SetBackgroundColour('#14FF63')
self.SetRowAttr(attr, row)
# Odd Even Rows
if row%2 == 1:
attr.SetBackgroundColour('#CCE6FF')
return attr
return None
but not when an even fires.
Any help much appreciated.