[PyQt] SIP: are C++ defined constants available in Python?
Phil Thompson
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:
> Hi,
>
> it is the first time I use SIP to wrap a C++ library. I managed to make
my
> 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
name
> 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
macro)...
const int MAX_ITERATIONS;
Phil
More information about the PyQt
mailing list