Emphasizing a gtk.Label

skip at pobox.com skip at pobox.com
Mon Sep 25 13:42:41 EDT 2006


    >> I want to give some emphasis to a Label from gtk, without breaking
    >> gnome theme... What would be the best solution?

Maybe:

    mylabel.set_markup("""<span weight="bold">My Label</span>""")

?  For more details, check out the PyGTK docs for the Label widget:

    http://www.moeraki.com/pygtkreference/pygtk2reference/class-gtklabel.html

and the Pango markup language:

    http://www.moeraki.com/pygtkreference/pygtk2reference/pango-markup-language.html

Skip



More information about the Python-list mailing list