From a0bff31692c3bd09a3be4a134e092b1577dc600a 2021-10-06 22:13:35 From: Matthias Bussonnier Date: 2021-10-06 22:13:35 Subject: [PATCH] Backport PR #13172: 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