DebugClients/Python/ThreadExtension.py

changeset 5918
d89cd224dd1b
parent 5914
e44c04a89dbc
child 5949
22657f04f332
child 5965
b8d53f4149c8
equal deleted inserted replaced
5917:ba1312abe858 5918:d89cd224dd1b
326 def __init__(self, *args, **kwargs): 326 def __init__(self, *args, **kwargs):
327 # Overwrite the provided run method with our own, to 327 # Overwrite the provided run method with our own, to
328 # intercept the thread creation by threading.Thread 328 # intercept the thread creation by threading.Thread
329 self.run = lambda s=self, run=self.run: _bootstrap(s, run) 329 self.run = lambda s=self, run=self.run: _bootstrap(s, run)
330 330
331 super(ThreadWrapper, self).__init__(*args, **kwargs) 331 module.Thread.__init__(self, *args, **kwargs)
332 332
333 module.Thread = ThreadWrapper 333 module.Thread = ThreadWrapper
334 334
335 # Add hook for *.QThread 335 # Add hook for *.QThread
336 elif (fullname in ['PyQt4.QtCore', 'PyQt5.QtCore', 336 elif (fullname in ['PyQt4.QtCore', 'PyQt5.QtCore',

eric ide

mercurial