Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
05ec510f
Commit
05ec510f
authored
Jun 16, 2016
by
Maxime Perrotin
Browse files
Fix handling of automatic clicks in random simulation
parent
86c4f013
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/sdlHandler.py
View file @
05ec510f
...
...
@@ -246,6 +246,7 @@ class sdlHandler(QObject):
msc_undo
=
Signal
()
msc_redo
=
Signal
()
allowed_messages
=
Signal
(
list
)
clicker
=
Signal
()
def
__init__
(
self
,
parent
):
''' Startup: check if there are some SDL files in
...
...
@@ -716,7 +717,10 @@ class sdlHandler(QObject):
if
vals
[
'name'
]
==
name
:
argpy
=
vn
.
fromValueNotationToPySide
(
name
,
arg
)
vals
[
'editor'
].
updateVariable
(
argpy
)
vals
[
'send_btn'
].
click
()
# Can't call click from this here, must send a signal
self
.
clicker
.
connect
(
vals
[
'send_btn'
].
click
)
self
.
clicker
.
emit
()
#vals['send_btn'].click()
def
random_step
(
self
):
''' One step of random simulation '''
...
...
@@ -728,7 +732,6 @@ class sdlHandler(QObject):
arg
=
compute_random_value
(
asn1_ty
,
self
.
proc
.
dataview
)
self
.
click_tc
(
name
,
arg
)
# Select randomly an active TC and call it
#random_tc = random.choice(list(self.active_tc))
try
:
random_tc
,
asn1_ty
=
random
.
choice
(
list
(
self
.
sim_param
[
'random'
]))
except
IndexError
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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