Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
a9625d4c
Commit
a9625d4c
authored
Aug 23, 2015
by
Maxime Perrotin
Browse files
Display modal window in case a stop condition is true
parent
890fe015
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/sdlHandler.py
View file @
a9625d4c
...
...
@@ -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
self
.
properties
.
viewitems
():
if
check
():
self
.
log_area
.
addItem
(
'Property "{}" is true'
.
format
(
text
))
msg
=
'Property "{}" is true'
.
format
(
text
)
self
.
log_area
.
addItem
(
msg
)
if
self
.
sim_param
[
'state'
]
!=
'exhaustive'
:
box
=
QMessageBox
(
QMessageBox
.
Information
,
'Stop condition'
,
msg
)
box
.
exec_
()
self
.
sim_param
[
'state'
]
=
'manual'
@
Slot
()
def
startStop
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment