Unify the access patterns for children widgets in rpc widgets
in general the access pattern for properties should be similar as in Waveform
widgets (eg for accessing curves):
@property
def curves(self) -> list[BECCurve]:
"""
Get the curves of the plot widget as a list
Returns:
list: List of curves.
"""
return self._curves
@curves.setter
def curves(self, value: list[BECCurve]):
self._curves = value
However I noticed that in some widgets the same functionality is more complex and should be unified in a similar way, eg. BECImageShow
:
def get_image_list(self) -> list[BECImageItem]:
"""
Get the list of images.
Returns:
list[BECImageItem]: The list of images.
"""
images = []
for source, images_dict in self._images.items():
for id, image in images_dict.items():
images.append(image)
return images
this should be changed just to properties images
.
Edited by wyzula_j