##// END OF EJS Templates
Clean up exit code.
Gael Varoquaux -
Show More
@@ -41,15 +41,8 b' class WIPythonController(WxController):'
41 41 """ Exits the interpreter, kills the windows.
42 42 """
43 43 WxController.do_exit(self)
44 # Remove the callbacks, to avoid PyDeadObjectErrors
45 do_nothing = lambda *args, **kwargs: True
46 44 self.release_output()
47 self._on_key_down = do_nothing
48 self._on_key_up = do_nothing
49 self._on_enter = do_nothing
50 self.after_execute = do_nothing
51 wx.Yield()
52 wx.CallAfter(self.Parent.Destroy)
45 wx.CallAfter(wx.Exit)
53 46
54 47
55 48
@@ -69,7 +62,7 b' class WIPython(wx.Frame):'
69 62
70 63 def main():
71 64 app = wx.PySimpleApp()
72 frame = WIPython(None, wx.ID_ANY, 'WIpython')
65 frame = WIPython(None, wx.ID_ANY, 'WIPython')
73 66 frame.shell.SetFocus()
74 67 frame.shell.app = app
75 68 frame.SetSize((680, 460))
General Comments 0
You need to be logged in to leave comments. Login now