Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Functions
os.cpp File Reference

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>
Include dependency graph for os.cpp:

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...
 

Detailed Description

Utilities for interactions between the GUI and the operating system.

Definition in file os.cpp.

Function Documentation

◆ python_gui()

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.

Parameters
argsArguments passed to the Python interpreter (first element is the script path).
Returns
true if the computation finished successfully, false otherwise.

Definition at line 45 of file os.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: