Ejemplo n.º 1
0
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())
Ejemplo n.º 2
0
 def birth(self):
   RootSupervisor.birth(self)
   self.gui = RootSupervisorGUI(self)