mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 10:57:55 -07:00
fix controller update
This commit is contained in:
parent
807d502aec
commit
c5972a2ede
|
@ -204,11 +204,12 @@ def stop_controller(attrname=None, old=None, new=None):
|
|||
|
||||
def update_models(attrname=None, old=None, new=None):
|
||||
stop_controller()
|
||||
print(attrname)
|
||||
print(old)
|
||||
print(new)
|
||||
if new is not None:
|
||||
exec(new)
|
||||
try:
|
||||
exec(controller_model_text.value)
|
||||
print("INFO: controller model updated")
|
||||
print(D)
|
||||
except:
|
||||
print("WARN: invalid controller model")
|
||||
|
||||
|
||||
# GUI elements
|
||||
|
|
Loading…
Reference in New Issue
Block a user