[pygtk] how to set pygtk global font?

Thomas Mills Hinkle tmhinkle at gmail.com
Wed Jan 10 19:59:08 WST 2007


On 1/8/07, ilovepython at 126.com <ilovepython at 126.com> wrote:
>
>  Hi all:
>
>  Can anyone tell me how to set pygtk global font with code instead of
> editing gtkrc file?
>

You can use gtk.rc_parse_string.

That takes as its argument whatever you would put in the rc file.

e.g.
gtk.rc_parse_string('''

style
"default"
 {

   font_name =3D "arial 17"
}
''')

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20070110/b1e3e109/at=
tachment.htm


More information about the pygtk mailing list