On Thursday 24 October 2002 9:24 am, Konrad Hinsen wrote: > Phil Thompson <[EMAIL PROTECTED]> writes: > > That's because you aren't keeping a reference to the FilterObject > > instance so it gets garbage collected immediately. > > I admit that the ownership details in PyQt still surprise me > occasionally. How can installEventFilter() possibly work without > keeping a reference on the object that is passed to it?
It can't. > What does it > keep, if not a reference? If it kept just the address without > increasing the Python reference counter, then my code should crash. The result will be unpredictable, but usually a crash. Phil _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
