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