I used an array to define the keys of components like key = ['Name', 'Value']. Then, I would like to find a component with Value = 10 on Canvas using userCanvas.find(). It works if I use userCavas.find(Value = 10). However, it does not work if I use userCavans.find(locals()[key[1] = 10]) because userCanvas.find() does not allow to contain locals(). I don't want to use Name or Value directly. Can anyone have any idea to make it work?
Add New Comment