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
signature.asc
Description: This is a digitally signed message part
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
