コード例 #1
0
ファイル: visual.py プロジェクト: fredvdd/Swan
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())
コード例 #2
0
ファイル: visual.py プロジェクト: fredvdd/Swan
 def birth(self):
   RootSupervisor.birth(self)
   self.gui = RootSupervisorGUI(self)