Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on PyQt5 Tutorial: Create a Python GUI in 2018. Parent comment
E.g. this works in PyQt:
def f(): pass signal.connect(f) signal.disconnect(f)
There are no comments on this comment yet.
E.g. this works in PyQt:
But the disconnect fails in PySide2 (RuntimError: not connected). Seems like you have to store the connection object, which is a bit of a PITA because signal.connect() does not return that.