logo       

dependant modules: msg#00142

programming.swig

Subject: dependant modules

Hi,

I'm attempting to create 2 python swig modules, with one module using
objects found in the other.

I have a module named 'otk' which contains Rect objects. Classes in my
'ob' module return Rect objects.

Here's an example that does work (client is an object in the 'ob'
module, and screen is in the 'otk' module):

print _otk.Rect_x(client.area())
print screen.area().x()

But the following example does not work (it would if client was in otk
as well):

print client.area().x()

I'm trying to make this work by %import'ing the .i for the otk module,
but it doesn't work. The code in the wrap.cc's seems identical, they
have the same type names etc, and in both modules they return the same
thing as far as I can tell. Is there any way I can make this work?

Thanks,
Natas
--
I am damn unsatisfied to be killed in this way.

http://www.icculus.org/openbox/

Attachment: pgpwAyOY9xjKm.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise