[pygtk] Putting a link inside a label
Giuseppe Penone
giuspen at gmail.com
Thu Apr 14 15:40:19 WST 2011
I think for this you need to add a textview inside of the button, then it's
easy to have a clickable link there as you can see in the pygtk-demo (run
"pygtk-demo" in a terminal to open it, then search for "Text Widget" ->
"Hypertext").
Cheers,
Giuseppe.
On Thu, Apr 14, 2011 at 2:46 AM, Jason Heeris <jason.heeris at gmail.com>wrote:
> 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
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110414/55f37a7f/attachment.html>
More information about the pygtk
mailing list