From cb88acb54fa283556b7a1e2607d9bd2da4750cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 2 Mar 2018 10:43:09 +0100 Subject: [PATCH] Fix ProcessMonitor pausing being useless due to pmgeh refactor --- src/demo/event_handler_main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/demo/event_handler_main.py b/src/demo/event_handler_main.py index 35a8f09..dfbd5bb 100644 --- a/src/demo/event_handler_main.py +++ b/src/demo/event_handler_main.py @@ -7,9 +7,11 @@ from tfw.config import tfwenv if __name__ == '__main__': - eventhandlers = {SourceCodeEventHandler('webide', tfwenv.WEBIDE_WD), - TerminadoEventHandler('terminado', 'terminado'), - ProcessManagingEventHandler('processmanager')} + ide = SourceCodeEventHandler('webide', tfwenv.WEBIDE_WD) + terminado = TerminadoEventHandler('terminado', 'terminado') + processmanager = ProcessManagingEventHandler('processmanager', ide.monitor) + + eventhandlers = {ide, terminado, processmanager} try: IOLoop.instance().start() finally: