31 PyGILState_STATE m_GILState;
33 PyGILRAII() : m_GILState(PyGILState_Ensure()) { }
34 ~PyGILRAII() { PyGILState_Release(m_GILState); }
43 int nArgs = args.size();
44 PyObject *pyargs = PyTuple_New(nArgs);
45 for (
int i = 0; i < nArgs; ++i)
46 PyTuple_SET_ITEM(pyargs, i, (
PyObject *)args[i]);
47 pyself = PyObject_Call(pyclass, pyargs, NULL);
57 pyself = PyObject_Call(pyclass, pyargs, NULL);
66 int nArgs = args.size();
67 PyObject *pyargs = PyTuple_New(nArgs);
68 for (
int i = 0; i < nArgs; ++i)
69 PyTuple_SET_ITEM(pyargs, i, (
PyObject *)args[i]);
183 Py_XINCREF(fPyObject);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
static PyObject * CallMethod(PyObject *pymeth, const std::vector< TPyArg > &args)
static void CallDestructor(PyObject *&pyself, PyObject *pymeth, const std::vector< TPyArg > &args)
TPyArg & operator=(const TPyArg &)
Assignment operator.
virtual ~TPyArg()
Done with held PyObject.
static void CallConstructor(PyObject *&pyself, PyObject *pyclass, const std::vector< TPyArg > &args)
void CallConstructor(PyObject *&pyself, PyObject *pyclass)