On Sun, 2004-12-26 at 12:33 -0500, Francis Lavoie wrote:
> Is there an easy way to put mail link and http link on a textlabel?
>
> I use pango markup like this : <span foreground="#000099"
> underline="single" weight="bold">[EMAIL PROTECTED]</span>
>
> but it's not automaticly clickable to open the default mail-client.
> And it is not theme-friendly
>
> Is there another way to go that I mist?
Use a GnomeHRef widget? I still had to use pango makeup to make it look
like a clickable link, though:
label = self.href.get_child()
label.set_text("<span foreground=\"blue\" underline=\"single\">" +
label.get_text() + "</span>")
label.set_use_markup(True)
--
Regards,
-\- David Eriksson -/-
SynCE - http://synce.sourceforge.net
ScummVM - http://scummvm.sourceforge.net
Desquirr - http://desquirr.sourceforge.net
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/