Hi

I am trying to change the font of a label with the following code:


        fuente = gtk.load_font("-*-helvetica-*-*-*-*-24-*-*-*-*-*-*-*")
        strMensaje = string.replace(strMensaje,'\\n','\n')
        gtkLabel = gtk.GtkLabel(strMensaje)

        estilo = gtkLabel.get_style()
        estilo.font = fuente
        gtkLabel.set_style(estilo)

And it works, but no as I expected... the font change for this
widgets, but it also changes for all the other ones in the
aplication...

Is there any other system to change the font of a widget?
how can I change the style of a "concret" widget?

thanks in advance
-- 
Hasta otra!

        Eduardo Ferro Aldama     [EMAIL PROTECTED] 
        http://www.todolinux.net/usuarios/eferro/

La web del GLUB http://glub.ehu.es/
Grupo Linux Usuarios de Bizkaia

This is my signature.  There are many signatures like it but this one is mine..
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to