Import C++ classes in python?
<p>so.. let's say i have this C function:</p>

<pre><code>PyObject* Foo(PyObject* pSelf, PyObject* pArgs)
{
    MessageBox(NULL, "Foo was called!", "Info", MB_OK);
    return PyInt_FromLong(0);
}
</code></pre>

<p>and then, I have to do this:</p>

<pre><code>static PyMethodDef Methods[] = 
{
    {"Foo", Foo, METH_NOARGS, "Dummy function"},
    {NULL, NULL, 0, NULL}
};
Py_InitModule("bar", Methods);
</code></pre>

<p>and I execute my python script..
but C functions are a little annoying, it's C++ and I use classes for almost everything.</p>

<p>So, is there any way to import member functions from a class to my python script?</p>

<p>oh btw, the python script looks something like this:</p>

<pre><code>import bar
from bar import *
Foo()
</code></pre>
