search for: pythonprepend

Displaying 1 result from an estimated 1 matches for "pythonprepend".

2006 Sep 13
1
[Fwd: Re: [Swig-user] wrapping enums for python]
...SS_MIN = Enum(_swigtest.SS_MIN, "SS_MIN") > instead of > SS_MIN = _swigtest.SS_MIN > > But the problem is that I do not know how to do > SS_MIN = Enum(_swigtest.SS_MIN, "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"...