mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-27 03:17:06 -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):
|
def update_models(attrname=None, old=None, new=None):
|
||||||
stop_controller()
|
stop_controller()
|
||||||
print(attrname)
|
try:
|
||||||
print(old)
|
exec(controller_model_text.value)
|
||||||
print(new)
|
print("INFO: controller model updated")
|
||||||
if new is not None:
|
print(D)
|
||||||
exec(new)
|
except:
|
||||||
|
print("WARN: invalid controller model")
|
||||||
|
|
||||||
|
|
||||||
# GUI elements
|
# GUI elements
|
||||||
|
|
Loading…
Reference in New Issue
Block a user