On Thursday 10 July 2003 19:53, Phil Thompson wrote: > On Thursday 10 July 2003 7:25 pm, David Boddie wrote:
> > PyObject *base_objs, *base_class; > > > > class_obj = ((PyInstanceObject*)pInstance)->in_class; > > > > base_objs = ((PyClassObject*)class_obj)->cl_bases; > > > > base_class = PyTuple_GetItem(base_objs, 0); > > > > panel_applet = (KPanelApplet*)sipConvertToCpp( > > pInstance, base_class, &iserrp > > ); [...] > Instead of base_class you should use sipClass_KPanelApplet. The above won't > work if you are using a (Python) sub-class of KPanelApplet. Strangely, it does appear to work with a subclass of KPanelApplet but that may just be a lucky coincidence due to the implementation. I should check the value of "iserrp" just to make sure. > Or use > sipForceConvertTo_KPanelApplet as Jim suggested which is just a wrapper > around the above. I'll take a look. I was hoping to avoid specialising the code but I suppose that it may be unavoidable. All the best, David _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
