From eadea3724bd66adf616bba9a0fefcac20695d583 2021-10-03 02:44:00 From: KIU Shueng Chuan Date: 2021-10-03 02:44:00 Subject: [PATCH] use _exec wrapper for qt win32 inputhook --- diff --git a/IPython/terminal/pt_inputhooks/qt.py b/IPython/terminal/pt_inputhooks/qt.py index bc34f70..f1e710a 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