Re: Programmatic links in a TKinter TextBox

2005-06-15 Thread Grooooops
Many thanks Jeff!!! This is what should be in the TK docs. Your example was very clear. And now I've learned some new stuff... :) For my project, I needed to add three pieces of data per link like this: text.insert(Tkinter.END, "link", ("a", "href:"+href,"another:This Is More Data", "last:and one

Re: Programmatic links in a TKinter TextBox

2005-06-15 Thread Jeff Epler
Based on the location where the user clicked, you can find the associated tags. Then you must loop through them to find the one that gives the "href" value. Jeff :r /tmp/link.py import Tkinter app = Tkinter.Tk() text = Tkinter.Text(app) text.pack() def click(event): #this doesn't work