20#ifndef KROSS_PYTHON_EXTENSION_H
21#define KROSS_PYTHON_EXTENSION_H
23#include "pythonconfig.h"
25#include "../api/object.h"
26#include "../api/list.h"
27#include "../api/dict.h"
28#include "../api/class.h"
31#include <tqstringlist.h>
32#include <tqvaluelist.h>
33#include <tqvaluevector.h>
37namespace Kross { namespace Python {
76 virtual Py::Object str();
84 virtual Py::Object repr();
98 virtual Py::Object getattr( const char* name);
145 static const Py::Object toPyObject( const TQString& s);
153 static const Py::List toPyObject( const TQStringList& list);
161 static const Py::Dict toPyObject( const TQStringVariantMap& map);
169 static const Py::List toPyObject( const TQValueList<TQVariant>& list);
177 static const Py::Object toPyObject( const TQVariant& variant);
202 Py::MethodDefExt<PythonExtension>* m_proxymethod;
216 static PyObject* proxyhandler(PyObject* _self_and_name_tuple, PyObject* _args);
TDESharedPtr< List > Ptr Shared pointer to implement reference-counting.
TDESharedPtr< Object > Ptr Shared pointer to implement reference-counting.
The PythonExtension is a wrapper-object to let C++ and Python interact together.
virtual ~PythonExtension() Destructor.
virtual Py::Object getattr(const char *name) Overloaded method to handle attribute calls from within python.
The PythonModule is the main python environment used as global object namespace.
The PythonObject class is used for Instances of Python Classes by the PythonExtension class.
The Kross scripting bridge to embed scripting functionality into an application.
|