예제 #1
0
 def OnClose(self, evt):
     loginfo('window close event, initiating shutdown')
     ok_to_shutdown = cooker.query_shutdown()
     if ok_to_shutdown:
         cooker.do_shutdown()
         evt.Skip()
     else:
         evt.Veto() # VETO the wx shutdown!
예제 #2
0
 def OnDailyinfo_mainClose(self, event):
     loginfo('window close event, initiating subshrimp shutdown')
     ok_to_shutdown = cooker.query_shutdown('dailyinfo')
     if ok_to_shutdown:
         cooker.bring_down_shrimp('dailyinfo')
         event.Skip()
     else:
         event.Veto() # VETO the wx shutdown!
예제 #3
0
 def OnJnrain_mainClose(self, event):
     loginfo("window close event, initiating subshrimp shutdown")
     ok_to_shutdown = cooker.query_shutdown("jnrain")
     if ok_to_shutdown:
         cooker.bring_down_shrimp("jnrain")
         event.Skip()
     else:
         event.Veto()  # VETO the wx shutdown!