##// END OF EJS Templates
Fix tests for IPython.lib
Thomas Kluyver -
Show More
@@ -320,8 +320,11 b' class InputHookManager(object):'
320 320 """
321 321 self._current_gui = GUI_TK
322 322 if app is None:
323 import tkinter
324 app = tkinter.Tk()
323 try:
324 from tkinter import Tk # Py 3
325 except ImportError:
326 from Tkinter import Tk # Py 2
327 app = Tk()
325 328 app.withdraw()
326 329 self._apps[GUI_TK] = app
327 330 return app
General Comments 0
You need to be logged in to leave comments. Login now