ControlSystemStudio / cs-studio

Control System Studio is an Eclipse-based collections of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
https://controlsystemstudio.org/
Eclipse Public License 1.0
113 stars 96 forks source link

Array widget index of components #2615

Open stealex opened 5 years ago

stealex commented 5 years ago

Hello!

I have the following problem: I want to create an array of actiom buttons that open an opi file with different values of a macro based on their index or array elemnt in the array widget. I have not been able to retrieve any of these properties. I have found however, that the array widget has a method called "getIndex()" which, when applied on the daughter widget returns the corresponding index. Anyway, I'm not able to use it inside any script. Any solution to this problem will be much appreciated. Thank you!