1 2 3 4 5 6 7 8 9
from circuits import BaseComponent class InheritedComponent(BaseComponent): def register(self, parent): super(InheritedComponent, self).register(parent) self.channel = parent.channel