def broadcast(self, message, *args): """Traverse the component hierarchy, calling each component's handler for the given message, if any.""" Component.broadcast(self, message, *args) for comp in self._contents: comp.broadcast(message, *args)