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):
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