logo       

Re: easy hyperlink builder (email-http link): msg#00138

gnome.gtk+.python

Subject: Re: easy hyperlink builder (email-http link)

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">francis@xxxxxxxxxx</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 pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise