Add python shell qt window

This commit is contained in:
baldurk
2017-04-17 19:42:08 +01:00
parent 31050d651e
commit 2a4596e06a
13 changed files with 858 additions and 4 deletions
@@ -424,6 +424,11 @@ void PythonContext::GlobalShutdown()
Py_Finalize();
}
QString PythonContext::versionString()
{
return QString("%1.%2.%3").arg(PY_MAJOR_VERSION).arg(PY_MINOR_VERSION).arg(PY_MICRO_VERSION);
}
void PythonContext::executeString(const QString &filename, const QString &source, bool interactive)
{
if(!initialised())