redText = wx.grid.GridCellAttr() blueText = wx.grid.GridCellAttr() bgColour = wx.grid.GridCellAttr() redText.SetTextColour('Red') blueText.SetTextColour('Blue') bgColour.SetBackgroundColour('Light Grey') if resultsBill[0] == '0': self.probGrid.SetRowAttr(rowNumber, redText) else: pass try: if resultsHCC[0] == 'Yes': self.probGrid.SetRowAttr(rowNumber, bgColour) #this isn't working self.probGrid.SetRowAttr(rowNumber, redText) else: if resultsHCC[1] == 'Yes': self.probGrid.SetRowAttr(rowNumber, bgColour) except: pass
I can’t seem to get both the background color and the text color on the same row. Is the background getting overwritten?
Thanks for any help.
Mike Barron