Making a hyperlink in a text widget

Cameron Laird claird at starbase.neosoft.com
Tue Jan 30 13:34:47 EST 2001


In article <mailman.980750435.23347.python-list at python.org>,
Lynn Walton  <waltonl at franklin.edu> wrote:
>I read in the tk intro on text widgets that you can make hyperlinks in
>text widgets by using the text.tag_bind method.
>
>I'm wondering if anyone could share some code examples with me that
>would do the following on a windows platform (98 and/or 2000) :
>- display a URL (a file:///  so it opens a file on the local drive) in
>the text widget  that when clicked on opens that file in the default
>browser on that machine, or if that's too generic, opens Netscape 4.x if
>installed as default browser.
			.
			.
			.
Do you read Tcl?  While I don't have an example of this in
Tkinter at hand, the Tcl crowd constantly plays with this
sort of stuff <URL: http://mini.net/cgi-bin/wikit/1194.html >.
-- 

Cameron Laird <claird at NeoSoft.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list