Ejemplo n.º 1
0
 def _close_application(self, message):
     self.session.strategy_manager.save_strategies()
     pub.unsubAll()
     self.view.frame.Show(False)
     wx.Yield()
     self.view.frame.Destroy()
     wx.GetApp().Exit()
Ejemplo n.º 2
0
 def OnCloseWindow(self, event):
     """
     
         Actions triggered when main window is closed.
         
         Parameters:
             event    -    event object (wx.Event)
     
     """
     self.StopDeviceTimer()
     # stop scan thread
     if not(self.is_scanning):
         pub.unsubAll()
         self.Destroy()
     else:
         if wx.MessageBox("Scan is running! Really quit?", "Quit", style=wx.YES | wx.NO) == wx.YES:
             pub.sendMessage("scan.stop")
             pub.unsubAll()
             wx.CallAfter(self.Destroy)
Ejemplo n.º 3
0
 def tearDown(self):
     TestCaseHandlingConfigBase.tearDown(self)
     Publisher.unsubAll()
Ejemplo n.º 4
0
 def setUp(self):
     Publisher.unsubAll()
     TestCaseHandlingConfigBase.setUp(self)
Ejemplo n.º 5
0
def unsub_all():
    pub.unsubAll()
Ejemplo n.º 6
0
def unsub_all():
    pub.unsubAll()