16 #include <pybind11/eval.h>
17 #include <pybind11/pybind11.h>
56 void executeCode(
const std::string &code, QListWidget *output);
70 template <pybind11::eval_mode mode>
71 void executeCodeString(
const std::string &code,
76 bool m_isExecuting{
false};
81 void *m_libPythonHandle{
nullptr};
void executeCode(const std::string &code, QListWidget *output)
void executeFunction(const pybind11::object &function)
void executeCodeWithState(const std::string &code, QListWidget *output, PythonInterpreter::State &state)
const PythonConfigPaths & config() const
PythonInterpreter(QObject *parent=nullptr)
static bool IsInitialized()
bool executeFile(const std::string &filePath)
Execution functions (and slots)
void executeStatementWithState(const std::string &code, QListWidget *output, PythonInterpreter::State &state)
void initialize(const PythonConfig &config)