Mantid
Loading...
Searching...
No Matches
PythonRunner.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "DllOption.h"
10#include <QObject>
11#include <QStringList>
12
16namespace MantidQt {
17namespace API {
27 Q_OBJECT
28
29public:
31 PythonRunner() : QObject() {}
32
34 QString runPythonCode(const QString &code, bool no_output = false);
36 static const QString stringList2Tuple(const QStringList &list);
37signals:
38 void runAsPythonScript(const QString &code, bool /*_t2*/);
39};
40} // namespace API
41} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
This is the base class all customised user interfaces that do not wish to be tied to a specific Manti...
Definition: PythonRunner.h:26
void runAsPythonScript(const QString &code, bool)
PythonRunner()
Default constructor.
Definition: PythonRunner.h:31
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...