Commit a9625d4c authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Display modal window in case a stop condition is true

parent 890fe015
......@@ -28,7 +28,7 @@ from itertools import chain
from PySide.QtGui import (QDockWidget, QPushButton, QGridLayout, QListWidget,
QUndoStack, QUndoCommand, QToolButton, QTableWidget,
QTableWidgetItem, QComboBox)
QTableWidgetItem, QComboBox, QMessageBox)
from PySide.QtCore import QObject, Signal, Slot, Qt, QFile, QTimer
from PySide.QtUiTools import QUiLoader
......@@ -443,7 +443,13 @@ class sdlHandler(QObject):
self.restore_global_state(statehash, dll=self.prop_dll)
for text, check in
if check():
self.log_area.addItem('Property "{}" is true'.format(text))
msg = 'Property "{}" is true'.format(text)
if self.sim_param['state'] != 'exhaustive':
box = QMessageBox(QMessageBox.Information,
'Stop condition', msg)
self.sim_param['state'] = 'manual'
def startStop(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment