[pygtk] Gtkrc styles
Frédéric
frederic.mantegazza at gbiloba.org
Tue Dec 16 17:22:53 WST 2008
Le 15/12/2008, "Frédéric" <frederic.mantegazza at gbiloba.org> a écrit:
>Ok, I found the answer of this question:
>
> gtk.rc_parse(gtkrcFileName)
> screen = myMainWindow.get_screen()
> settings = gtk.settings_get_for_screen(screen)
> gtk.rc_reset_styles(settings)
Grrr, it does not work totally as expected... In my code, I change the
weight of some labels font. I just turn them to bold, using this code:
context = myLabel.get_pango_context()
font = context.get_font_description()
font.set_weight(pango.WEIGHT_BOLD)
myLabel.modify_font(font)
But once the gtkrc file is called, my fonts remains as they where before,
even if I call the above method again!
Any idea why?
--
Frédéric
More information about the pygtk
mailing list