class VisualRootSupervisor(RootSupervisor): def birth(self): RootSupervisor.birth(self) self.gui = RootSupervisorGUI(self) def child_died(self, child): self.gui.child_died(child) def child_errored(self, child, error): self.gui.child_errored(child, error) def child_migrated(self, child, to): self.gui.child_migrated(child, to) def arrived(self): RootSupervisor.arrived(self) self.gui.imigrated(here()) self.gui.migrate_to(here())
def birth(self): RootSupervisor.birth(self) self.gui = RootSupervisorGUI(self)