#include <pythonmodule.h>
Inheritance diagram for Kross::Python::PythonModule:


The module also spends access to the whole Kross functionality and manages all the PythonExtension modules.
Definition at line 44 of file pythonmodule.h.
Public Member Functions | |
| PythonModule (PythonInterpreter *interpreter) | |
| virtual | ~PythonModule () |
| Py::Dict | getDict () |
|
|
Constructor.
Definition at line 51 of file pythonmodule.cpp. References Kross::Python::PythonModulePrivate::m_interpreter. 00052 : Py::ExtensionModule<PythonModule>("__main__") 00053 , d(new PythonModulePrivate()) 00054 { 00055 #ifdef KROSS_PYTHON_MODULE_DEBUG 00056 kdDebug() << QString("Kross::Python::PythonModule::Constructor") << endl; 00057 #endif 00058 00059 d->m_interpreter = interpreter; 00060 00061 add_varargs_method("_import", &PythonModule::import, "FIXME: Documentation"); 00062 00063 initialize("The PythonModule is the __main__ python environment used as global object namespace."); 00064 }
|
|
|
Destructor. Definition at line 66 of file pythonmodule.cpp. 00067 { 00068 #ifdef KROSS_PYTHON_MODULE_DEBUG 00069 kdDebug() << QString("Kross::Python::PythonModule::Destructor name='%1'").arg(name().c_str()) << endl; 00070 #endif 00071 00072 delete d; 00073 }
|
|
|
Definition at line 75 of file pythonmodule.cpp.
|
1.4.6