From 1cfca27f6693fb8c3b5ca215179181fb95d28e9c 2021-10-12 16:24:32 From: Matthias Bussonnier Date: 2021-10-12 16:24:32 Subject: [PATCH] Merge pull request #13178 from meeseeksmachine/auto-backport-of-pr-13172-on-7.x Backport PR #13172 on branch 7.x (use _exec wrapper for qt win32 inputhook) --- diff --git a/IPython/terminal/pt_inputhooks/qt.py b/IPython/terminal/pt_inputhooks/qt.py index ef2a1f5..b999f5a 100644 --- a/IPython/terminal/pt_inputhooks/qt.py +++ b/IPython/terminal/pt_inputhooks/qt.py @@ -64,7 +64,7 @@ def inputhook(context): timer.timeout.connect(event_loop.quit) while not context.input_is_ready(): timer.start(50) # 50 ms - event_loop.exec_() + _exec(event_loop) timer.stop() else: # On POSIX platforms, we can use a file descriptor to quit the event