[PyKDE] disconnecting PYSIGNAL
Phil Thompson
phil at riverbankcomputing.co.uk
Mon Nov 3 16:48:01 GMT 2003
On Monday 03 November 2003 3:41 pm, Toby Dickenson wrote:
> On Monday 03 November 2003 14:54, Gerard Vermeulen wrote:
> > On Mon, 3 Nov 2003 10:24:23 +0000
> >
> > Toby Dickenson <tdickenson at devmail.geminidataloggers.co.uk> wrote:
> > > SIGNAL connections get automatically cleaned up by Qt when the
> > > recieving C++ object is destroyed. It appears that PYSIGNAL connections
> > > get automatically cleaned up when the recieving python object is
> > > destroyed.
> >
> > bool QObject::disconnect ( const QObject * sender, const char * signal,
> > const QObject * receiver, const char * member ) [static]
> >
> > I do not know if I have example code, but AFAIR it works.
>
> I know about that one for individual signals, but you need to know what
> signals need disconnecting. I was hoping for a way to disconnect all
> signals into an object in bulk. Or a way of enumerating the signals into an
> object.... hmmm.....
The "wildcard" variants of disconnect() are on the TODO list.
Phil
More information about the PyQt
mailing list