We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9070ade commit c3772aeCopy full SHA for c3772ae
lib/matplotlib/backends/qt_compat.py
@@ -233,10 +233,8 @@ def _maybe_allow_interrupt(qapp):
233
rsock.fileno(), _enum('QtCore.QSocketNotifier.Type').Read
234
)
235
236
- @sn.activated.connect
237
- def on_signal(*args):
238
- rsock.recv(
239
- sys.getsizeof(int)) # clear the socket to re-arm the notifier
+ # Clear the socket to re-arm the notifier.
+ sn.activated.connect(lambda *args: rsock.recv(1))
240
241
def handle(*args):
242
nonlocal handler_args
0 commit comments