Show More
@@ -20,6 +20,7 b' except ImportError:' | |||
|
20 | 20 | ctypes = None |
|
21 | 21 | import os |
|
22 | 22 | import sys |
|
23 | from distutils.version import LooseVersion as V | |
|
23 | 24 | |
|
24 | 25 | from IPython.utils.warn import warn |
|
25 | 26 | |
@@ -200,6 +201,13 b' class InputHookManager(object):' | |||
|
200 | 201 | import wx |
|
201 | 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 | 211 | from IPython.lib.inputhookwx import inputhook_wx |
|
204 | 212 | self.set_inputhook(inputhook_wx) |
|
205 | 213 | self._current_gui = GUI_WX |
General Comments 0
You need to be logged in to leave comments.
Login now