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

Load properties from dll

parent 9dbbb3ce
......@@ -2,7 +2,7 @@
# Resource object code
#
# Created: Thu Mar 19 22:03:05 2015
# Created: Thu Mar 19 22:11:00 2015
# by: The Resource Compiler for PySide (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
......
......@@ -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):
......
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