From 4577575bed8ea1076c5586a74bf439b81355bad5 2020-06-07 19:16:14 From: Matthias Bussonnier Date: 2020-06-07 19:16:14 Subject: [PATCH] Merge pull request #12369 from meeseeksmachine/auto-backport-of-pr-12355-on-7.x Backport PR #12355 on branch 7.x (Fix GUI inputhook for qt 5.15.0) --- diff --git a/IPython/terminal/pt_inputhooks/qt.py b/IPython/terminal/pt_inputhooks/qt.py index 1504c3b..9f5e1b4 100644 --- a/IPython/terminal/pt_inputhooks/qt.py +++ b/IPython/terminal/pt_inputhooks/qt.py @@ -45,7 +45,7 @@ def inputhook(context): QtCore.QSocketNotifier.Read) try: # connect the callback we care about before we turn it on - notifier.activated.connect(event_loop.exit) + notifier.activated.connect(lambda: event_loop.exit()) notifier.setEnabled(True) # only start the event loop we are not already flipped if not context.input_is_ready():