Ticket #3948: issue_3948.patch
| File issue_3948.patch, 1.2 KB (added by psykidellic, 2 years ago) |
|---|
-
twisted/internet/wxreactor.py
72 72 """ 73 73 self.wxapp = wxapp 74 74 75 75 76 def _installSignalHandlersAgain(self): 76 77 """ 77 78 wx sometimes removes our own signal handlers, so re-add them. … … 84 85 return 85 86 self._handleSignals() 86 87 88 87 89 def stop(self): 88 90 """ 89 91 Stop the reactor. … … 91 93 if self._stopping: 92 94 return 93 95 self._stopping = True 94 _threadedselect.ThreadedSelectReactor.stop(self)96 self.callFromThread(_threadedselect.ThreadedSelectReactor.stop, self) 95 97 98 96 99 def _runInMainThread(self, f): 97 100 """ 98 101 Schedule function to run in main wx/Twisted thread. … … 105 108 # wx shutdown but twisted hasn't 106 109 self._postQueue.put(f) 107 110 111 108 112 def _stopWx(self): 109 113 """ 110 114 Stop the wx event loop if it hasn't already been stopped. … … 114 118 if hasattr(self, "wxapp"): 115 119 self.wxapp.ExitMainLoop() 116 120 121 117 122 def run(self, installSignalHandlers=True): 118 123 """ 119 124 Start the reactor.
