I'm basic at Python and I would like to change a single value colour to red, in this case the 6.36 value.

enter image description here

I'm using this code:

[Nazwa] + "/" + [PPW]  + "/" + [DPW]

So I wanted to change the colour of [DPW] to red. I was also thinking about using string, due to summing up the values before, don't know why.

str( [Nazwa] ) + "/" + str( [PPW] )  + "/" + str ( [DPW] )
  • 2
    This information is in the help file here.
    – Hornbydd
    Dec 12, 2020 at 14:02
  • Thanks, but in fact the info there is wrong. I used their expression and I had errors, answer below is correct.
    – Snorku
    Dec 13, 2020 at 10:19

1 Answer 1


Try doing this:-

[STATE_NAME] +  " "  + "<CLR red='255'>" + [POP2000]  + "</CLR>"

enter image description here

You can follow the below documentation for a better understanding.

Specify text for labels


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.