Le 10/12/2008, "Gian Mario Tagliaretti" <[EMAIL PROTECTED]> a écrit:

>you could use (if I got your question right) the pango markup for that:
>http://library.gnome.org/devel/pango/unstable/PangoMarkupFormat.html

Ok, I finally found how to do that:

    def _setFontParams(self, widget, scale=None, weight=None):
        context = widget.get_pango_context()
        font = context.get_font_description()
        if scale is not None:
            font.set_size(int(font.get_size() * scale))
        if weight is not None:
            font.set_weight(weight)
        widget.modify_font(font)

where weight can be something like pango.WEIGHT_BOLD...

BTW, wher do I put the .gtkrc-2.0 file under windows? I tried under:

    C:\\Document and Settings\<user>\Application Data\gtk-2.0\gtkrc

but it does not work...

--
   Frédéric
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to