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
c93db5e8
Commit
c93db5e8
authored
Mar 19, 2015
by
Maxime Perrotin
Browse files
Load properties from dll
parent
9dbbb3ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/resources.py
View file @
c93db5e8
...
...
@@ -2,7 +2,7 @@
# Resource object code
#
# Created: Thu Mar 19 22:
03
:0
5
2015
# Created: Thu Mar 19 22:
11
:0
0
2015
# by: The Resource Compiler for PySide (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
...
...
asn1_value_editor/sdlHandler.py
View file @
c93db5e8
...
...
@@ -139,6 +139,8 @@ class sdlHandler(QObject):
reset_button
.
clicked
.
connect
(
self
.
reset_simulation
)
undo_button
.
clicked
.
connect
(
self
.
undo
)
redo_button
.
clicked
.
connect
(
self
.
redo
)
# Placeholder to keep a list of properties to be checked at runtime
self
.
properties
=
[]
@
property
def
dll
(
self
):
...
...
@@ -216,6 +218,18 @@ class sdlHandler(QObject):
self
.
log_area
.
addItem
(
'No properties to load'
)
else
:
self
.
log_area
.
addItem
(
'Found property file'
)
idx
=
0
while
True
:
try
:
prop
=
getattr
(
prop_dll
,
'_property_{}'
.
format
(
idx
))
self
.
properties
.
append
(
prop
)
except
AttributeError
:
break
else
:
idx
+=
1
self
.
log_area
.
addItem
(
'Loaded {} properties'
.
format
(
idx
))
@
Slot
()
def
startStop
(
self
):
...
...
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