[PyQt] Garbage collection, signals to partial functions
Martin Teichmann
lkb.teichmann at gmail.com
Tue Nov 17 18:07:48 GMT 2009
Hi,
> If I see things correctly, you misunderstood Phil. You're supposed to do
> the check in a timer-called-function, not the initialization. That is all
> this code:
>> [ code deleted ]]
>
> Should be in a slot connected to a timer.
It is. That's what the line
QtCore.QTimer.singleShot(0, c.init)
does. I know, the naming of the function init is
not too intuitive, I was maybe a bit quick at
choosing it. The initialisation, btw, is called
__init__, and inherited from QObject.
Greetings
Martin
More information about the PyQt
mailing list