[pygtk] Pango attribute
Gonzalo Sainz-Trápaga
gomo at datafull.com
Fri Feb 13 23:58:23 WST 2004
Hi Russell,
On Fri, 2004-02-13 at 23:43, Russell Shaw wrote:
> Hi,
> How do i make the first letter of a gtk_label bold? I tried:
>
> label=gtk.Label("Name")
> attrlist=pango.AttrList()
> attr=pango.AttrWeight(pango.WEIGHT_BOLD)
> attrlist.insert(attr)
> label.set_attributes(attrlist)
Use pango's HTML-like markup:
label = gtk.Label("<b>N</b>ame")
label.set_use_markup(True)
--
Gonzalo Sainz-Trápaga (GomoX)
GnuPG Fingerprint: A0AF 3BBF EB93 7EFE 6628 C5A5 F073 9442 6DE4 A497
Public Key:
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0x6DE4A497
------------ próxima parte ------------
Se ha borrado un mensaje que no est? en formato texto plano...
Nombre : no disponible
Tipo : application/pgp-signature
Tama?o : 189 bytes
Descripci?n: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20040213/a308eacb/attachment.bin
More information about the pygtk
mailing list