Displaying 1 result from an estimated 1 matches for "swig_python_setconstant".
2006 Sep 13
1
[Fwd: Re: [Swig-user] wrapping enums for python]
...SS_MIN")
> for each define (would it be possible to use something like
> %feature("pythonprepend")?) .
>
> Also there are C++ methods that return enums so it might be necessary to
> create Enum python class in wrapper cxx file instead of py file.
> (And then change SWIG_Python_SetConstant() method to create equivalent of
> SS_MIN = Enum(_swigtest.SS_MIN, "SS_MIN") ).
>
> As I am new to SWIG (and Python as well) I wander if there is better and
> simpler way how to do this.
>
> Thanks
Maybe you can take a look here
http://www.swig.org/Doc1.3/Typemaps.htm...