[SOLVED] How to update a Dictionary Screen Variable?
Posted: Tue Feb 25, 2020 5:25 pm
Hey Folks! Good Morning to all of you!
So right now I have my variables inside my screen. I structured one of my variables as a dict, unfortunately, I am unable to update it. Simply, which I use because I want to live update the variable using an input, and `SetScreenVariable`, which is another way of modifying screen variables in some cases, do not work. I mean, is it possible to use the property of the input element and update at the same time the dict? I've been using something like this , unfortunately it throws an error that key is not found. Is this possible though?
Another thing... If things are not really feasible and the use of property is the only solution, is there a that I can call inside my python functions or inside the python blocks itself that contains the screen variables for a specific screen? Something like
Hope my questions make sense. Thank you, everyone, have a good day!
So right now I have my variables inside my screen. I structured one of my variables as a dict, unfortunately, I am unable to update it. Simply
Code: Select all
ScreenVariableInputValue
Code: Select all
value
Code: Select all
value ScreenVariableInputValue("dict['key1']['key2']")
Another thing... If things are not really feasible and the use of
Code: Select all
changed
Code: Select all
namespace
Code: Select all
screen.variables.dict["key1"]["key2"]