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