fix controller update

This commit is contained in:
Brendan Haines 2020-04-08 13:59:44 -06:00
parent 807d502aec
commit c5972a2ede

View File

@ -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