You can do

import pango
mytxtview = gtk.TreeView()
mytxtview.modify_font(pango.FontDescription('monospace 10'))

Gary

markus espenhain wrote:
hi

is there a way to set the 'font_name' property (or other font
description) for a particular TextView widget?
i've tried:

style "text-view-monospace"
{
        font_name = "monospace 10"
}
widget "*mytxtview*" style "text-view-monospace"

but nothing happens

style definitions containing 'font_name' for other widgets e.g. Label
work fine

any hint?

thanks
markus

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to