[pygtk] Bold menu item

skip at pobox.com skip at pobox.com
Sun Jan 14 22:42:04 WST 2007


    Pete> Is there a way to make a menu item's text bold.  Can't see a
    Pete> set_markup() method

I believe you have to get ahold of the menu item's label and call set_markup
on it, something like:

    label = item.get_children()[0]
    label.set_markup("<b>Hi Pete!</b>")

(I'm not at work though, so I don't have immediate access to verify that.)

Skip


More information about the pygtk mailing list