e.message = '%s\n________________________________________________________________________________\nYou need wxPython to run this application.\n' % e.message
e.args = (e.message,) + e.args[1:]
raise e
from wx_frontend import WxController
import __builtin__
class IPythonXController(WxController):
debug = False
def __init__(self, *args, **kwargs):
WxController.__init__(self, *args, **kwargs)
self.ipython0.ask_exit = self.do_exit
maxrange = self.GetScrollRange(wx.VERTICAL)
self.ScrollLines(-maxrange)
def _on_key_down(self, event, skip = True):
if event.KeyCode == ord('D') and event.ControlDown() and self.input_buffer == '' and self._input_state == 'readline':