Displaying 1 result from an estimated 1 matches for "typemaps_nn7".
Did you mean:
typemaps_nn42
2006 Sep 13
1
[Fwd: Re: [Swig-user] wrapping enums for python]
...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.html#Typemaps_nn7 under point "Return
value handling". You could then write a typemap which converts the
returned enum to a Enum class.
You could probably use %pythoncode to insert your python statement into
the .py file. Just make sure you put it at the very end of your interface
file.
You probabl...