Apr-11-2025, 04:37 AM
Hello,
I am pretty new to python and OOP, so please don't be too harsh on my question
I have the following code:
I am pretty new to python and OOP, so please don't be too harsh on my question

I have the following code:
class frame: def __init__(self, width, height): self.frame_width = width self.frame_height = height def image(self): self.width = 0.8 * self.frame_width self.height = 0.8 * self.frame_height picture = frame(60,40)My question is, how can I access the image width in the following manner:
picture.image.width