I have a Glade file with a label with a gray default color, which I want to override with green from code.
Therefore I added a style class in Glade:
and added this to my Python script:
However, the color remains gray.
What did I do wrong?
The problem was, that Glade initially preceded the style class name with a dot in its generated XML file (see screenshot in the OP).
You need to edit the Glade XML file and remove it:
After that, you can repeatedly change the style class name in the Glade GUI, it does not get a dot again.