No subject


Mon Aug 10 08:07:47 WST 2009


the middle of the SpinButton. Small miracles for a newbee.

Art Hunkins

> Message: 2
> Date: Tue, 11 Aug 2009 11:36:20 +1200
> From: Tim Evans <t.evans at aranz.com>
> Subject: Re: [pygtk] set_use_markup and gtk.SpinButton
> To: pygtk at daa.com.au
> Message-ID: <4A80AEF4.70901 at aranz.com>
> Content-Type: text/plain; charset="US-ASCII"; format="flowed"
>
> 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