|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Utilities for interactions between the GUI and the operating system. More...
#include <QCoreApplication>#include <qmessagebox.h>#include <QTimer>#include "Tympan/models/business/subprocess_util.h"#include "Tympan/gui/app/TYApplication.h"#include "Tympan/core/logging.h"#include "Tympan/models/business/TYProgressManager.h"#include "Tympan/gui/app/PythonRunner.h"#include "os.h"#include <QThread>#include <QEventLoop>#include <QElapsedTimer>#include <QProgressBar>
Go to the source code of this file.
Functions | |
| bool | python_gui (QStringList args) |
| Launch a Python-driven computation with a GUI progress dialog. More... | |
Utilities for interactions between the GUI and the operating system.
Definition in file os.cpp.
| bool python_gui | ( | QStringList | args | ) |
Launch a Python-driven computation with a GUI progress dialog.
Shows an application-modal progress dialog with an indeterminate spinner while the Python subprocess runs. The dialog provides a Cancel button; upon user cancellation, a termination request is forwarded to the subprocess and the dialog is hidden.
On success: the dialog is closed cleanly (auto-close at 100%). On failure: the dialog is hidden and a French error message is displayed. On user cancellation: the dialog is hidden and a French information message is displayed.
| args | Arguments passed to the Python interpreter (first element is the script path). |
Definition at line 45 of file os.cpp.

