Hi All,

I'm writing a wrapper for a GInterface derived type, so I have written a .defs file with something like

(define-virtual activate
  (of-object "Plugin")
  (c-name "plugin_activate")
  (return-type "none")
)


Using codegen I get a function

static void _wrap_Plugin__proxy_do_activate(Plugin *self)
{
        ...
        py_retval = PyObject_CallObject(py_method, py_args);
        ...
        py_retval = Py_BuildValue("(N)", py_retval);
        if (!PyArg_ParseTuple(py_retval, "")) {
                if (PyErr_Occurred())


I don't understand why codegen generates some code to extract the return value from the python method as the C function doesn't need to return anything. Moreover, I have an error (not fatal) "TypeError: function takes exactly 0 arguments (1 given)" in PyArg_ParseTuple which I think is due to the empty string "".

Is it something wrong in codegen or do I have made an error somewhere ?

Regards,

Sébastien
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to