Show More
@@ -41,15 +41,8 class WIPythonController(WxController): | |||||
41 | """ Exits the interpreter, kills the windows. |
|
41 | """ Exits the interpreter, kills the windows. | |
42 | """ |
|
42 | """ | |
43 | WxController.do_exit(self) |
|
43 | WxController.do_exit(self) | |
44 | # Remove the callbacks, to avoid PyDeadObjectErrors |
|
|||
45 | do_nothing = lambda *args, **kwargs: True |
|
|||
46 | self.release_output() |
|
44 | self.release_output() | |
47 | self._on_key_down = do_nothing |
|
45 | wx.CallAfter(wx.Exit) | |
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) |
|
|||
53 |
|
46 | |||
54 |
|
47 | |||
55 |
|
48 | |||
@@ -69,7 +62,7 class WIPython(wx.Frame): | |||||
69 |
|
62 | |||
70 | def main(): |
|
63 | def main(): | |
71 | app = wx.PySimpleApp() |
|
64 | app = wx.PySimpleApp() | |
72 |
frame = WIPython(None, wx.ID_ANY, 'WI |
|
65 | frame = WIPython(None, wx.ID_ANY, 'WIPython') | |
73 | frame.shell.SetFocus() |
|
66 | frame.shell.SetFocus() | |
74 | frame.shell.app = app |
|
67 | frame.shell.app = app | |
75 | frame.SetSize((680, 460)) |
|
68 | frame.SetSize((680, 460)) |
General Comments 0
You need to be logged in to leave comments.
Login now