[PyKDE] Qobject.disconnect

Jonathan Gardner jgardn at alumni.washington.edu
Mon Dec 17 14:53:38 GMT 2001


On Monday 17 December 2001 12:02 am, Phil Thompson wrote:
> Jonathan Gardner wrote:
> >         QObject.disconnect(self._bm, PYSIGNAL('calc_weight()'), self,
> > self.populate_walk)
> > TypeError: Argument 4 of QObject.disconnect() has an invalid type
> >
> > The question is this: Is disconnect implemented? If so, how does one use
> > it?
>
> Disconnect is implemented - but not the full Qt functionality, only the
> disconnect of a single signal. Send me a simple test program that
> demonstrates any bugs you think might be there.
>
> Phil
>

I think the problem is that I should have called:

self.disconnect(self._bm, PYSIGNAL('calc_weight()'), self.populate_walk)

I did it that way and it works. 

Jonathan




More information about the PyQt mailing list