Re: [PyQt] problem with abstract classes

2007-08-15 Thread Diez B. Roggisch
Phil Thompson schrieb: On Wednesday 15 August 2007 8:57 pm, Diez B. Roggisch wrote: Hi, Do as Jim said and make sure the declaration of IEventReceiver::OnEvent() is the same in the .h and .sip files (see attached). Also remove the /Abstract/ annotation (for your example at least). Including i

Re: [PyQt] problem with abstract classes

2007-08-15 Thread Phil Thompson
On Wednesday 15 August 2007 8:57 pm, Diez B. Roggisch wrote: > Hi, > > > Do as Jim said and make sure the declaration of IEventReceiver::OnEvent() > > is the same in the .h and .sip files (see attached). > > > > Also remove the /Abstract/ annotation (for your example at least). > > Including it mea

Re: [PyQt] problem with abstract classes

2007-08-15 Thread Diez B. Roggisch
Hi, Do as Jim said and make sure the declaration of IEventReceiver::OnEvent() is the same in the .h and .sip files (see attached). Also remove the /Abstract/ annotation (for your example at least). Including it means that "there are *other* abstract functions which I'm not going to tell you

Re: [PyQt] problem with abstract classes

2007-08-14 Thread Giovanni Bajo
On 14/08/2007 9.47, Diez B. Roggisch wrote: Essentially all I try to do is to create a interface in C++ (IEventReceiver), a subclass (PyIEventReceiver) to overload the pure virtual methods of the base-interface so it can be overloaded in python and a test-class that invokes the OnEvent-method

Re: [PyQt] problem with abstract classes

2007-08-14 Thread Phil Thompson
On Tuesday 14 August 2007 8:47 am, Diez B. Roggisch wrote: > Giovanni Bajo schrieb: > > On 12/08/2007 16.20, Diez B. Roggisch wrote: > >> Any suggestions? Am I doing something fundamentally wrong wrt > >> implementation of C++-interfaces? > > > > Please post a minimal, complete example that reprodu

Re: [PyQt] problem with abstract classes

2007-08-14 Thread Diez B. Roggisch
Giovanni Bajo schrieb: On 12/08/2007 16.20, Diez B. Roggisch wrote: Any suggestions? Am I doing something fundamentally wrong wrt implementation of C++-interfaces? Please post a minimal, complete example that reproduces your problem. Otherwise, it's a little hard to help you... I know... S

Re: [PyQt] problem with abstract classes

2007-08-13 Thread Jim Bublitz
On Sunday 12 August 2007 07:20, Diez B. Roggisch wrote: > Hi, > > I'm in the process of wrapping the irrlicht 3d engine. So far, things > have been working smoothly. However, now I stumbled over a problem that > so far has not been willing to be disappearing, intensive gdb-use > notwithstanding. >

Re: [PyQt] problem with abstract classes

2007-08-13 Thread Giovanni Bajo
On 12/08/2007 16.20, Diez B. Roggisch wrote: Any suggestions? Am I doing something fundamentally wrong wrt implementation of C++-interfaces? Please post a minimal, complete example that reproduces your problem. Otherwise, it's a little hard to help you... -- Giovanni Bajo __

[PyQt] problem with abstract classes

2007-08-12 Thread Diez B. Roggisch
Hi, I'm in the process of wrapping the irrlicht 3d engine. So far, things have been working smoothly. However, now I stumbled over a problem that so far has not been willing to be disappearing, intensive gdb-use notwithstanding. There is a pure abstract class in Irrlicht, IEventReceiver. It