[PyKDE] disconnecting signals

Phil Thompson phil at riverbankcomputing.co.uk
Sat Feb 11 09:35:53 GMT 2006


On Friday 10 February 2006 11:29 pm, Emanuele Santos wrote:
> Hi
>
> I'm also new to python and PyQt, but I am familiar with Qt/C++.
>
> I'm using PyQt4 snapshot 20062901, how do I do to disconnect everything
> connected to a specific signal?
>
> I tried something like: self.disconnect(myObject,
> QtCore.SIGNAL("mysignal()"), None, None) but I got an error.
> In C++ it would be: disconnect(myObject, SIGNAL(mySignal()), 0, 0);
>
> In the examples, I found only disconnecting a specific receiver, which
> works fine but as I have a lot of connections,
> I have to call disconnect a bunch of times.

PyQt doesn't fully support disconnect(). It's on the TODO list but I haven't 
decided yet whether to add the support to PyQt4.

Phil




More information about the PyQt mailing list