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!
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!
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!