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>
50 friend class PythonScript;
51 friend class PythonObject;
52 friend class PythonModule;
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.
virtual ~PythonExtension() Destructor.
virtual Py::Object getattr(const char *name) Overloaded method to handle attribute calls from within python.
PythonExtension(Kross::Api::Object::Ptr object) Constructor.
The Python plugin for the Kross scripting framework.
The Kross scripting bridge to embed scripting functionality into an application.
|