Accessing and loading images from Sources #680
Replies: 2 comments 2 replies
-
Nice, good idea, I forgot about this area already :). Thanks! Re-reading my short story, I meant |
Beta Was this translation helpful? Give feedback.
-
From what I can tell (and my attempts) I don't there's a way to have this API without a helper class to have the class Source:
def __init__(self):
self.__imageViewHelper = ImageViewHelper(self._images)
@property
def images(self):
return self.__imageViewHelper
def _images(self):
raise AttributeError("Subclass must implement") See https://stackoverflow.com/questions/57468622/defining-getitem-and-setitem-for-a-property-in-python |
Beta Was this translation helpful? Give feedback.
-
Figured since this is an important topic we could move the discussion from #619 here.
see also #524
Where we're at so far:
#619 (comment)
#619 (comment)
#619 (comment)
#619 (comment)
Beta Was this translation helpful? Give feedback.
All reactions