MSYS2: fix creation of ProgressIndicatorPy

This commit is contained in:
wmayer
2023-03-14 21:39:31 +01:00
committed by wwmayer
parent 21d705ad4b
commit 2071971a5d
2 changed files with 18 additions and 0 deletions

View File

@@ -43,6 +43,21 @@ void ProgressIndicatorPy::init_type()
add_varargs_method("stop",&ProgressIndicatorPy::stop,"stop()");
}
Py::PythonType& ProgressIndicatorPy::behaviors()
{
return Py::PythonExtension<ProgressIndicatorPy>::behaviors();
}
PyTypeObject* ProgressIndicatorPy::type_object()
{
return Py::PythonExtension<ProgressIndicatorPy>::type_object();
}
bool ProgressIndicatorPy::check(PyObject* p)
{
return Py::PythonExtension<ProgressIndicatorPy>::check(p);
}
PyObject *ProgressIndicatorPy::PyMake(struct _typeobject *, PyObject *, PyObject *)
{
return new ProgressIndicatorPy();

View File

@@ -35,6 +35,9 @@ class BaseExport ProgressIndicatorPy : public Py::PythonExtension<ProgressIndica
{
public:
static void init_type(); // announce properties and methods
static Py::PythonType& behaviors();
static PyTypeObject* type_object();
static bool check(PyObject* p);
ProgressIndicatorPy();
~ProgressIndicatorPy() override;