In the macro code, it would be nice to be able to obtain a list of controller's elements, directly from the controller object.
For the moment one has to do it manually iterating over the list of all pool's elements:
pool = ctrl.getPoolObj()
elements = []
for _, elem in pool.getElementsOfType(ctrl.getMainType()).items():
if elem.controller != ctrl.getFullName():
continue
elements.append(elem)
In the macro code, it would be nice to be able to obtain a list of controller's elements, directly from the controller object. For the moment one has to do it manually iterating over the list of all pool's elements:
Related with the this sardana-users thread.
Reported by: reszelaz ( http://sf.net/u/zreszela )
Original Ticket: sardana/tickets/237