[pygtk] Text font

2000-02-17 Thread Javi Román

Hi:

I need change GtkFrame label font. I have this:

marco = GtkFrame ("Warning")
style = marco.get_style ().copy ()
style.font =
"-dec-terminal-medium-r-normal-*-*-140-*-*-c-*-iso8859-1"
marco.set_style (style)

How can I do it correctly?


Thanks.
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] Text font

2000-02-17 Thread James Henstridge

The font attribute of the style should be a GdkFont -- not a string.  To
get the GdkFont for a particular logical font name, use the load_font
procedure.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Thu, 17 Feb 2000, Javi [iso-8859-1] Román wrote:

 Hi:
 
 I need change GtkFrame label font. I have this:
 
 marco = GtkFrame ("Warning")
 style = marco.get_style ().copy ()
 style.font =
 "-dec-terminal-medium-r-normal-*-*-140-*-*-c-*-iso8859-1"
 marco.set_style (style)
 
 How can I do it correctly?
 
 
 Thanks.
 To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]