[pygtk] Larger Font Size?
Neil Dugan
pygtk at butterflystitches.com.au
Fri Aug 14 20:19:20 WST 2009
Art Hunkins wrote:
> I'd like to make a general
> declaration to set font size to 14 in my script.
>
> On another list I was given a suggestion that gave rise to the following:
>
> Would it be sufficient to:
> declare:
> from sugar.graphics import style
>
> and early in my __init__ method specify:
> style.font_zoom(14)
> ?
try
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
window.get_settings().set_string_property('gtk-font-name','sans normal
14')
>
> I tried this and it didn't work; the script ran but font size (default size
> = 10) didn't change.
>
> Can anyone massage this for me, or indicate another simple way to accomplish
> the same?
>
> Art Hunkins
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list