From: <and...@us...> - 2007-08-22 09:28:35
|
Revision: 7818 http://plplot.svn.sourceforge.net/plplot/?rev=7818&view=rev Author: andrewross Date: 2007-08-22 02:28:30 -0700 (Wed, 22 Aug 2007) Log Message: ----------- Let swig deal with PLGraphicsIn object and wrap it with a python class (as we do with the java bindings) rather than trying to fudge it. Modified Paths: -------------- trunk/bindings/python/plplotcmodule.i Modified: trunk/bindings/python/plplotcmodule.i =================================================================== --- trunk/bindings/python/plplotcmodule.i 2007-08-21 10:12:44 UTC (rev 7817) +++ trunk/bindings/python/plplotcmodule.i 2007-08-22 09:28:30 UTC (rev 7818) @@ -934,6 +934,7 @@ } +#if 0 %typemap(in) PLGraphicsIn *gin (PLGraphicsIn tmp) { if(!PySequence_Check($input) || PySequence_Size($input) != 2) { PyErr_SetString(PyExc_ValueError, "Expecting a sequence of 2 numbers."); @@ -950,5 +951,6 @@ o = PyFloat_FromDouble($1->wY); resultobj = t_output_helper(resultobj, o); } +#endif /* swig compatible PLplot API definitions from here on. */ %include plplotcapi.i This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |