[PyKDE] import sip module with C++ namespace

Zilin Du zd223 at nyu.edu
Thu May 25 01:59:12 BST 2006


hi, I have an question about import SIP module with C++ namespace:

for example, I wrote the following sip file:

%module Word 
namespace N1 {
   namespace N2 {
      class A {
        ...
      };
   };
};

after built up, if I  import as:

import Word

then i can use 

x = Word.N1.N2.A()

Is there a better way I can use A directly like this ?

from Word.N1.N2 import *

thanks,

Zilin




More information about the PyQt mailing list