Show More
@@ -45,6 +45,8 b' def inputhook(context):' | |||||
45 | QtCore.QSocketNotifier.Read) |
|
45 | QtCore.QSocketNotifier.Read) | |
46 | try: |
|
46 | try: | |
47 | # connect the callback we care about before we turn it on |
|
47 | # connect the callback we care about before we turn it on | |
|
48 | # lambda is necessary as PyQT inspect the function signature to know | |||
|
49 | # what arguments to pass to. See https://github.com/ipython/ipython/pull/12355 | |||
48 | notifier.activated.connect(lambda: event_loop.exit()) |
|
50 | notifier.activated.connect(lambda: event_loop.exit()) | |
49 | notifier.setEnabled(True) |
|
51 | notifier.setEnabled(True) | |
50 | # only start the event loop we are not already flipped |
|
52 | # only start the event loop we are not already flipped |
General Comments 0
You need to be logged in to leave comments.
Login now