[pygtk] set_use_markup and gtk.SpinButton
Tim Evans
t.evans at aranz.com
Tue Aug 11 07:36:20 WST 2009
Nathan Samson wrote:
> Since it seems you need to pass a pango.FontDescription you could try:
>
> spin.get_layout().set_font_description(pango.FontDescription('normal 10'))
The C documentation for gtk_entry_get_layout(), at least the version I'm
reading, specifies that you shouldn't modify the returned layout. I
think it would be better to use:
spin.modify_font(pango.FontDescription('10'))
You also don't need to specofy 'normal', '10' is a font description.
--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/
More information about the pygtk
mailing list