|
Re: easy hyperlink builder (email-http link): msg#00138gnome.gtk+.python
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> |
|---|---|---|
| Previous by Date: | easy hyperlink builder (email-http link): 00138, Francis Lavoie |
|---|---|
| Next by Date: | Re: drag-and-drop signal propagation: 00138, Matt Chisholm |
| Previous by Thread: | easy hyperlink builder (email-http link)i: 00138, Francis Lavoie |
| Next by Thread: | Re: easy hyperlink builder (email-http link): 00138, Francis Lavoie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |