Show More
@@ -40,10 +40,12 b' will fix it for Tk.)' | |||||
40 | """ |
|
40 | """ | |
41 | import time |
|
41 | import time | |
42 |
|
42 | |||
|
43 | from IPython.utils.py3compat import PY3 | |||
|
44 | ||||
43 | import _tkinter |
|
45 | import _tkinter | |
44 | try: |
|
46 | if PY3: | |
45 | import tkinter |
|
47 | import tkinter | |
46 | except ImportError: |
|
48 | else: | |
47 | import Tkinter as tkinter # Python 2 |
|
49 | import Tkinter as tkinter # Python 2 | |
48 |
|
50 | |||
49 | def inputhook(inputhook_context): |
|
51 | def inputhook(inputhook_context): |
General Comments 0
You need to be logged in to leave comments.
Login now