Search code examples
pythoncssgtkglade

Is it possible to change radio button color in Gtk?


I'm creating a Gtk application with Glade, Python and Css and I would like to know if I can change the color of the circle in a radio button.

I have tried all css properties of radio buttons but none of them worked

Thanks!


Solution

  • Thanks for the answer, this is the code you need if you want to use a custom image on a radio button:

    radio:checked {
        -gtk-icon-source: url("path_to_the_file");
    }