[PyQt] SIP: are C++ defined constants available in Python?
phil at riverbankcomputing.com
Mon Jan 18 10:48:29 GMT 2010
On Mon, 18 Jan 2010 11:25:58 +0100, Marco Fabiani <himork at kth.se> wrote:
> it is the first time I use SIP to wrap a C++ library. I managed to make
> code work, but I have a question: I defined some constants in the C++
> header file:
> #define MAX_ITERATIONS 10
> I would like to know if this constant is available (under a different
> maybe?) in the python module. If it is not, how do I make it explicitly
> available? I looked for a specific Directive but couldn't find one.
Just pretend it really is a C++ constant (rather than a C pre-processor
const int MAX_ITERATIONS;
More information about the PyQt