From 8089eae3429f319526f7fbfda843e5b46566b465 Mon Sep 17 00:00:00 2001 From: Richard Horton Date: Wed, 22 Nov 2017 11:30:07 +0000 Subject: [PATCH] Changed import method to try and fix an issue but didn't work, has been left altered for the sake of being consistent with the other files --- tkHyperlinkManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tkHyperlinkManager.py b/tkHyperlinkManager.py index a43df1e..a8d8a8f 100644 --- a/tkHyperlinkManager.py +++ b/tkHyperlinkManager.py @@ -4,7 +4,7 @@ # Source: http://effbot.org/zone/tkinter-text-hyperlink.htm # ######################################################################### -from tkinter import * +import tkinter as tk class HyperlinkManager: @@ -37,7 +37,7 @@ class HyperlinkManager: self.text.config(cursor="") def _click(self, event): - for tag in self.text.tag_names(CURRENT): + for tag in self.text.tag_names(tk.CURRENT): if tag[:6] == "hyper-": self.links[tag]() return