[PyQt] Can't disconnect <signal>.emit once connected as slot?

Florian Bruhin me at the-compiler.org
Fri Nov 3 15:51:17 GMT 2017


Hey,

On Thu, Nov 02, 2017 at 04:22:03PM -0700, Patrick Stinson wrote:
> I am connecting one signal to another via the second signal’s , and then
> later on trying to disconnect it with a similar call but using disconnect.
> But I get the following error, any explanation why?

I don't know whether this will work better for disconnecting, but note that you
can simply connect a signal to a signal:

    item.eventAdded[Event].connect(self.eventAdded)

Florian

-- 
https://www.qutebrowser.org  | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171103/eceeb0a6/attachment.sig>


More information about the PyQt mailing list