85 args = Py_VaBuildValue((
char *)format, va);
94 if (!PyTuple_Check(args)) {
96 PyTuple_SetItem(t, 0, args);
126 va_start(va, format);
128 args = Py_VaBuildValue((
char *)format, va);
137 if (!PyTuple_Check(args)) {
139 PyTuple_SetItem(t, 0, pyobj);
140 PyTuple_SetItem(t, 1, args);
143 PyObject *t = PyTuple_New(PyTuple_Size(args) + 1);
144 PyTuple_SetItem(t, 0, pyobj);
145 for (
int i = 0; i < PyTuple_Size(args); i++) {
146 PyObject *item = PyTuple_GetItem(args, i);
148 PyTuple_SetItem(t, i + 1, item);
154 args = PyTuple_New(1);
155 PyTuple_SetItem(args, 0, pyobj);
176 PyTuple_SetItem(args, 2, PyLong_FromLong(event));
194 PyTuple_SetItem(args, 0, PyLong_FromLong(event));
195 PyTuple_SetItem(args, 1, PyLong_FromLong(
x));
196 PyTuple_SetItem(args, 2, PyLong_FromLong(
y));
217 PyTuple_SetItem(args, 2, PyLong_FromLong(event));
#define PyBytes_FromString
int Int_t
Signed integer 4 bytes (int).
Drag and drop data container.
TObject & operator=(const TObject &rhs) noexcept
TObject assignment operator.
TObject()
TObject constructor.
The most important graphics class in the ROOT system.
TPyDispatcher & operator=(const TPyDispatcher &)
Assignment operator. Applies python object reference counting.
PyObject * DispatchVA1(const char *clname, void *obj, const char *format,...)
TPyDispatcher(PyObject *callable)
~TPyDispatcher() override
Destructor. Reference counting for the held python object is in effect.
PyObject * fCallable
! callable object to be dispatched
PyObject * DispatchVA(const char *format=0,...)
TVirtualPad is an abstract base class for the Pad and Canvas classes.
CPYCPPYY_EXTERN PyObject * Instance_FromVoidPtr(void *addr, const std::string &classname, bool python_owns=false)