Wonderful, Tim; that works.

Thanks so much.

>From your info, I was even able to figure out how to position the number in 
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 <[email protected]>
> Subject: Re: [pygtk] set_use_markup and gtk.SpinButton
> To: [email protected]
> Message-ID: <[email protected]>
> 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/
>

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

Reply via email to