Scripting Cell color in a Power Table

Something like this should do it.

This

    else:
        pass

is not necessary.

attributes = {'background': 'White', 'foreground': 'Black'}
if self.PartName == self.data.getValueAt(rowIndex, "Seed Tube Part Number"):
        attributes['background'] =  'Green'
        attributes['foreground'] = 'White'
if colName == "Int Column" and value == self.CurrentProgramNumber:
        attributes['background'] =  'Yellow'
        attributes['foreground'] = 'Black'

return attributes