Skip to content

Instantly share code, notes, and snippets.

@marvin
Created November 22, 2012 09:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marvin/4130284 to your computer and use it in GitHub Desktop.
Save marvin/4130284 to your computer and use it in GitHub Desktop.
tkinter with hyperlinks
@ShukhratSobich
Copy link

Hello there,

I had a problem with multiple links to.

It wont work also with the solution linked above, because the function works always with the same tag ("hyper"). In case of an iteration we have only one tag, that simply gets a new url each iteration. Different hyperlinks added in this way receive this one identical tag as well as the last url from a list.

The problem was already solved by martineau from stak overflow. So based on the solution I made a small function that works fine for me.

https://github.com/ShukhratSobich/python-functions/blob/main/hyperlink%20into%20tk.Text

I hope this information will help somebody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment