[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Re: clone member function deleting object
From: "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date: 2005-03-17 8:41:24
Message-ID: 65506.82.68.80.137.1111048884.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]
>>>>>> On Wed, 16 Mar 2005 14:12:55 -0000 (GMT), "Phil Thompson"
>>>>>> <phil@riverbankcomputing.co.uk> said:
>
>>>>>>>> On Wed, 16 Mar 2005 09:42:36 -0000 (GMT), "Phil Thompson"
>>>>>>>> <phil@riverbankcomputing.co.uk> said:
>>>
>>>> You use sipTransfer() - but you must call it before the Python
>>>> object is garbage collected, ie. you must provide
>>>> %VirtualCatcherCode for clone(). This is probably what you want
>>>> to do if you want to make life as easy as possible for your users
>>>> writing the Python reimplementations.
>>> Yes, sounds reasonable. Is there some example of using
>>> %VirtualCatcherCode that I can learn from?
>
>> The PyQt sources?
>
> The PyQt sources didn't help, but the documentation example did.
> So I've now got things working! Many thanks Phil, without your help I
> don't think I would have been able to figure it out.
I had another thought - maybe it should have been my first thought. Using
the /Factory/ annotation with clone() should do what you need without any
handwritten code.
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic