Gonzalo Sainz-Tr�paga wrote:
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)

Ok, i'll use that. Anyway, how do you get the attrlist way to work? I might need it for something else. _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to