[pygtk] Putting a link inside a label

Jason Heeris jason.heeris at gmail.com
Thu Apr 14 08:46:18 WST 2011


I have a label (actually a WrapLabel[1]) containing some warning text.
I'd like for a couple of the words of the text to take on the
appearance of a hyperlink which, when clicked, activate another widget
in the app (a notebook tab). I can't figure out how to do this — I've
looked at the LinkButton widget, but it's not something you can just
insert into the flow of text (is it?).

Is there some other way to do this?

Cheers,
Jason

[1] From http://git.gnome.org/cgit/meld/tree/meld/ui/wraplabel.py


More information about the pygtk mailing list