1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-01-17 23:22:53 +08:00

Use python.h wrapping to allow embedding as-is in any Qt-based project

This commit is contained in:
Igor Malinovskiy 2019-06-05 17:38:51 +03:00
parent 7f0ff4687b
commit 4c2bc52fa0
9 changed files with 14 additions and 8 deletions

View File

@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
**/
#include "Python.h"
#include "python_wrap.h"
class EnsureGILState {
public:

View File

@ -19,7 +19,7 @@
#ifndef PYOTHERSIDE_PYGLAREA_H
#define PYOTHERSIDE_PYGLAREA_H
#include "Python.h"
#include "python_wrap.h"
#include <QString>
#include <QVariant>

View File

@ -19,7 +19,7 @@
#ifndef PYOTHERSIDE_PYGLRENDERER_H
#define PYOTHERSIDE_PYGLRENDERER_H
#include "Python.h"
#include "python_wrap.h"
#include <QVariant>
#include <QString>

View File

@ -22,7 +22,7 @@
#include "converter.h"
#include "pyqobject.h"
#include "Python.h"
#include "python_wrap.h"
#include "datetime.h"
#include <QDebug>

View File

@ -20,7 +20,7 @@
#ifndef PYOTHERSIDE_PYOBJECT_REF_H
#define PYOTHERSIDE_PYOBJECT_REF_H
#include "Python.h"
#include "python_wrap.h"
#include <QMetaType>

View File

@ -19,7 +19,7 @@
#ifndef PYOTHERSIDE_PYQOBJECT_H
#define PYOTHERSIDE_PYQOBJECT_H
#include "Python.h"
#include "python_wrap.h"
#include "qobject_ref.h"

6
src/python_wrap.h Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#pragma push_macro("slots")
#undef slots
#include "Python.h"
#pragma pop_macro("slots")

View File

@ -19,7 +19,7 @@
#ifndef PYOTHERSIDE_QPYTHON_H
#define PYOTHERSIDE_QPYTHON_H
#include "Python.h"
#include "python_wrap.h"
#include <QVariant>
#include <QObject>

View File

@ -19,7 +19,7 @@
#ifndef PYOTHERSIDE_QPYTHON_PRIV_H
#define PYOTHERSIDE_QPYTHON_PRIV_H
#include "Python.h"
#include "python_wrap.h"
#include "pyobject_ref.h"
#include "pyqobject.h"