Skip to content

Commit 4faf267

Browse files
committed
removed prior instantiation check
1 parent ca106a8 commit 4faf267

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tkthread/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ class TkThread(object):
134134
def __init__(self, root):
135135
"""TkThread object for the root 'tkinter.Tk' object"""
136136

137-
if hasattr(root, 'tkt'):
138-
raise RuntimeError('TkThread instance already created')
139-
root.tkt = self
140-
141137
self._main_thread = threading.current_thread()
142138
self.root = root
143139
self.root.eval('package require Thread')

0 commit comments

Comments
 (0)