[PyQt] Garbage collection, signals to partial functions
phil at riverbankcomputing.com
Tue Nov 17 21:37:24 GMT 2009
On Tue, 17 Nov 2009 20:39:28 +0100, Andreas Pakulat <apaku at gmx.de> wrote:
> On 17.11.09 19:07:48, Martin Teichmann wrote:
>> > 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
> Yes, but its still done at the same time all the "cleanup" stuff is
> done. What Phil means is that you should do the signal-stuff and the
> part about "cleaning this up" in init() and only then schedule a timer
> that checks wether the cleanup was done properly. Because the cleaning
> up is only finished once the eventloop is run once (which happens after
> returning from the init() function only.
This is correct - but after fixing the original script to add an event loop
as I had intended the problem is still there. I think the cause is that
SIP's gc support has a problem.
More information about the PyQt