##// END OF EJS Templates
check wxPython version in inputhook...
MinRK -
Show More
@@ -20,6 +20,7 b' except ImportError:'
20 ctypes = None
20 ctypes = None
21 import os
21 import os
22 import sys
22 import sys
23 from distutils.version import LooseVersion as V
23
24
24 from IPython.utils.warn import warn
25 from IPython.utils.warn import warn
25
26
@@ -200,6 +201,13 b' class InputHookManager(object):'
200 import wx
201 import wx
201 app = wx.App(redirect=False, clearSigInt=False)
202 app = wx.App(redirect=False, clearSigInt=False)
202 """
203 """
204 import wx
205
206 wx_version = V(wx.__version__).version
207
208 if wx_version < [2, 8]:
209 raise ValueError("requires wxPython >= 2.8, but you have %s" % wx.__version__)
210
203 from IPython.lib.inputhookwx import inputhook_wx
211 from IPython.lib.inputhookwx import inputhook_wx
204 self.set_inputhook(inputhook_wx)
212 self.set_inputhook(inputhook_wx)
205 self._current_gui = GUI_WX
213 self._current_gui = GUI_WX
General Comments 0
You need to be logged in to leave comments. Login now