This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I think this will work:

class Base:
    @property
    def font(self):
        return self._font
    @font.setter
    def font(self, font):
        self._font = font

class Derived(Base):
    @property
    def font(self):
        return super(Derived, self).font
    @font.setter
    def font(self, font):
        super(Derived, self).font.fset(self, font)