- PyObject *m_list;
-public:
- PSignal()
- {
- m_list = PyList_New(0);
- Py_INCREF(m_list);
- }
- ~PSignal()
- {
- Py_DECREF(m_list);
- }
-
- void callPython(PyObject *tuple)
- {
- int size = PyList_Size(m_list);
- int i;
- for (i=0; i<size; ++i)
- {
- PyObject *b = PyList_GET_ITEM(m_list, i);
- ePython::call(b, tuple);
- }
- }
-
-
- PyObject *get() { Py_INCREF(m_list); return m_list; }