[pygtk] Font in TextView
Frédéric Grollier
fred.grollier at free.fr
Fri Nov 13 05:22:47 WST 2009
Le jeudi 12 novembre 2009 à 18:00 +0530, Baloon man a écrit :
> Hello
>
> I am new to pygtk programming and found it very intuitive !!! I am
> trying to find a way to set a local language font ( lohit kannada
> - ಕನ್ನಡ ) for text view. How do I do this.
Hello,
If I understand the question correctly, you should take a look at the
modify_font() method[1]. For example :
your_text_view.modify_font('lohit normal 12')
[1]
http://library.gnome.org/devel/pygtk/stable/class-gtkwidget.html#method-gtkwidget--modify-font
Fred.
More information about the pygtk
mailing list