[pygtk] TextView and rc-style
Gary Jaffe
gfj555 at gmail.com
Mon Jan 21 06:40:10 WST 2008
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 pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
More information about the pygtk
mailing list