mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 13:15:57 +00:00
Add python shell qt window
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -55,6 +55,8 @@ public:
|
||||
static void GlobalInit();
|
||||
static void GlobalShutdown();
|
||||
|
||||
QString versionString();
|
||||
|
||||
template <typename T>
|
||||
void setGlobal(const char *varName, T *object)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user